Forums | Mahara Community
Support
/
Hour is missing from the timestamp
25 November 2009, 4:54
Just notice it - the hour is missing from the format of the time stamp - it looks like 24 November 2009, :40 PM
An example is shown here - the left image.
Mahara 1.2.0, Windows XP, XAMPP, MySQL 5.0.67
25 November 2009, 13:40
That is extremely strange. Is that the only place in Mahara that you've noticed it ?
The php manual says,
As the output is dependent upon the underlying C library, some conversion specifiers are not supported. On Windows, supplying unknown conversion specifiers will result in 5 E_WARNING messages and return FALSE. On other operating systems you may not get any E_WARNING messages and the output may contain the conversion specifiers unconverted.
http://ch2.php.net/manual/en/function.strftime.php
Are you getting any errors or warnings in your logs?
27 November 2009, 8:53
This timestamp format is everwhere - forums, feedbacks, notifications.
There is no info about this in the error log.
25 November 2009, 16:07
I added another note to the bug report about the encoding of those messages for this. It might be to do with the C library on your system, or it might be to do with the replacement for strptime that Richard recently added that we use in some places.01 December 2009, 22:58
I don't think it's the strptime thing. The timestamps in the notifications are created using format_date (i.e. strftime) and strtotime.