Mercurial > hg > mgallery
diff mgallery.php @ 124:eac2cf04261a
Change how date timestamps are stored and handled. This breaks cache file
backward/forward compatibility.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 31 Jul 2017 14:48:09 +0300 |
parents | d1ed6213f6d2 |
children | 379a8cd3bb2c |
line wrap: on
line diff
--- a/mgallery.php Wed May 10 20:12:40 2017 +0300 +++ b/mgallery.php Mon Jul 31 14:48:09 2017 +0300 @@ -376,10 +376,10 @@ } -function mgTimeStr($str) +function mgTimeStr($stamp) { - $tmp = date_create_from_format("Y:m:d H:i:s", $str); - return date_format($tmp, "d M Y (H:i:s)"); +// return date_format($stamp, "d M Y (H:i:s)"); + return date("d M Y (H:i:s)", $stamp); }