Archive for November 22nd, 2005
Getting ISO 8601 format time on PHP boards
Try Y-m-d H:i:s O. It always shows the timezone offset as +0000, though. The only fix I’ve found for this is to actually hard code the timezone — I’m using Y-m-d H:i:s +0530 as the literal string for the date format on this non-blog.
The relevant pages are the PHP docs and Markus Kuhn’s page.