PHP strftime on Windows is stupid
Thursday 01/8/2009 – Category: Uncategorized
Apparently %e, %T, %R and %D (there might be more) don't work on Windows because "not all conversion specifiers may be supported by your C library".
Workaround: You can add the # flag to force single digits and remove the leading zero without the space that %e will add.
Examples:
%#d for day of the month
%#I for the 12-hour clock hour
Leave a Reply
Recent Posts
- Flickr Original updates
(Saturday 08/7/2010 – 7 Comments) - LED Light for iPhone 4
(Monday 06/28/2010 – 45 Comments) - WWDC 2010: Worth Every Minute
(Monday 06/14/2010 – No Comments) - Flickr Original for Safari 5!
(Wednesday 06/9/2010 – 26 Comments)
