php - Convert date from unix format to ISO8601 -
i'm storing timestamps utc unix epoch time.
i want convert time iso 8601 format. (2013-08-01t05:14:48z)
for example, unix epoch time of 1375334088 means thu, 01 aug 2013 05:14:48 gmt.
but when date('c', 1375334088) gives 2013-08-01t06:14:48+01:00 instead of 2013-08-01t05:14:48z
gmdate('y-m-d\th:i:s\z', 1375334088); see gmdate().
Comments
Post a Comment