Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Change the date INPUT format in the Admin system
Is it possible to change the ‘publish at’ date and time in the admin system from YYYY MM DD | HH:SS (current) into the standard English format of DD MM YYYY | HH:SS?
My clients are currently finding it a bit confusing/annoying.
Anyone done this before?
Offline
#2 2006-04-21 15:40:41
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Change the date INPUT format in the Admin system
You’ll have to hack /include/txp_article.php. Look for //-- timestamp -------------------
and replace this code
<pre>tsi(‘year’,‘Y’,$persist_timestamp),
tsi(‘month’,‘m’,$persist_timestamp),
tsi(‘day’,‘d’,$persist_timestamp), sp,
</pre>
with
<pre>tsi(‘day’,‘d’,$persist_timestamp),
tsi(‘month’,‘m’,$persist_timestamp),
tsi(‘year’,‘Y’,$persist_timestamp), sp,
</pre>
Offline