Mercurial > hg > mgallery
diff mgallery.php @ 130:f825d644cf7a
Implement new config setting "timezone" for specifying the timezone used for date/timestamp interpretation.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 01 Sep 2017 00:44:52 +0300 |
parents | 35de3e4e1677 |
children | 5ffc84b7da1a |
line wrap: on
line diff
--- a/mgallery.php Fri Sep 01 00:44:03 2017 +0300 +++ b/mgallery.php Fri Sep 01 00:44:52 2017 +0300 @@ -502,6 +502,9 @@ if (is_string($galImage)) $galImage = basename($galImage); +if (($pageTimeZone = mgGetSetting("timezone")) !== NULL) + date_default_timezone_set($pageTimeZone); + // Check language setting if (($tmp = mgGetRequestItem("lang", FALSE, TRUE)) !== FALSE)