From 4cd5c4cebbe80f90dd781336f9206be10113575b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 31 Jan 2010 11:27:54 -0800 Subject: Second attempt to fix the timezone issue. If the timezone is not set in phpinfo(), then force it to America/Los_Angeles for now. --- modules/gallery/config/locale.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/gallery/config/locale.php b/modules/gallery/config/locale.php index 2d401758..f8241444 100644 --- a/modules/gallery/config/locale.php +++ b/modules/gallery/config/locale.php @@ -33,6 +33,10 @@ $config['language'] = array('en_US', 'English_United States'); * @see http://php.net/timezones */ $config['timezone'] = ini_get('date.timezone'); +if (empty($config['timezone'])) { + // This is a required field. Pick something as a default. + $config['timezone'] = "America/Los_Angeles"; +} // i18n settings -- cgit v1.2.3