By: Trent
Date: 2007-09-18
Time: 00:17
|
Unusual Timestamp formatting problem
I have a timestamp displayed on my website using [var..now;frm='mmm dd, yyyy hh:mm AMPM']. When the template loads, it always displays the minutes as 9. For example, at 10:54, it will display 10:59. At 3:02, it will display 3:09. It does this on my local machine as well as my production servers. I also use the mentioned format for displaying a unix timestamp, and it has the same behavior. Every minute, is listed as 9. What could be causing this? I have the lastest release of TBS.
|
By: Skrol29
Date: 2007-09-18
Time: 06:31
|
Re: Unusual Timestamp formatting problem
Can you provide the code that feeds the variable $now ?
|
By: Trent
Date: 2007-09-19
Time: 05:10
|
Re: Unusual Timestamp formatting problem
[var..now] is the built-in TBS code I'm using. I'm not setting a separate variable, this is one of the built-in Template/Script variables.
|
By: Skrol29
Date: 2007-09-20
Time: 00:20
|
Re: Unusual Timestamp formatting problem
Hi Tren,
I can reporduce your problem. The thing is that 'mm' is for the month. Use 'nn' for the minutes.
|
By: Trent
Date: 2007-09-20
Time: 00:22
|
Re: Unusual Timestamp formatting problem
Ahhh....thanks Skrol.
|
|
Posting in progress.
Please wait...
|