Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-08-08 09:32:32
- neokultur
- Member
- Registered: 2005-09-23
- Posts: 43
Problems using format date AM PM
A was trying this:
<txp:posted format=”%I:%M %p “ />
And I only get something like this:
“03:24”
The posted format doesnt show AM or PM
:(
Offline
Offline
#3 2010-08-08 13:11:55
- neokultur
- Member
- Registered: 2005-09-23
- Posts: 43
Re: Problems using format date AM PM
In Spanish there is not option for AM/PM… But if I change to ENGLISH and everything is OK.
But in the selection for my local time (Caracas, Venezuela) UTC/GMT -4:30 hours, i could not find the correct time for Caracas, there is only -3:00 hours or -4:00 hours
(Caracas, Venezuela) UTC/GMT -4:30 hours: http://www.timeanddate.com/worldclock/city.html?n=58
D:
Last edited by neokultur (2010-08-08 13:12:59)
Offline
#4 2010-08-08 13:32:58
- neokultur
- Member
- Registered: 2005-09-23
- Posts: 43
Re: Problems using format date AM PM
Not an elegant solution, using PHP, but it works:
<txp:php>
date_default_timezone_set('America/Caracas');
echo date('D,F j, Y, h:i:s A');
</txp:php>
Offline
Re: Problems using format date AM PM
neokultur wrote:
But in the selection for my local time (Caracas, Venezuela) UTC/GMT -4:30 hours, i could not find the correct time for Caracas, there is only -3:00 hours or -4:00 hours
The dropdown in TXP’s preferences has America/Caracas in there and it should do exactly what you did with date_default_timezone_set().
Offline
#6 2010-08-08 20:21:37
- neokultur
- Member
- Registered: 2005-09-23
- Posts: 43
Re: Problems using format date AM PM
Tag error: <txp:norman_at format=”%I:%M %p | %m.%d.%y | “ /> -> Notice: Undefined variable: gmt on line 141
textpattern/publish.php:1106 atb_tw_created_at()
textpattern/publish.php:1028 processTags()
textpattern/lib/txplib_misc.php(594) : eval()’d code:80 parse()
textpattern/publish.php:1106 atb_twitter()
textpattern/publish.php:1041 processTags()
textpattern/publish.php:506 parse()
index.php:45 textpattern()
Last edited by neokultur (2010-08-08 21:34:01)
Offline
#7 2010-08-08 23:23:30
- neokultur
- Member
- Registered: 2005-09-23
- Posts: 43
Re: Problems using format date AM PM
And there is not zone time for Venezuela: (Caracas, Venezuela) UTC/GMT -4:30 hours
Offline
Pages: 1