diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2011-04-22 16:44:12 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2011-04-22 16:44:12 -0700 |
| commit | fcbb4eef23e05261efd4e6a840f2abdef8055fc6 (patch) | |
| tree | dc0e96e17cf4755c532cb7d20c5b2fa8b109e7a2 /modules/gallery/config | |
| parent | f2009fa21e6dc0eea970ba354169a6e0f52c0f2a (diff) | |
| parent | 6f916e49d5b431c2c1961a13d1a61fef8c02d628 (diff) | |
Merge branch 'time-zone-improvements' of https://github.com/alindeman/gallery3 into alindeman-time-zone-improvements
Diffstat (limited to 'modules/gallery/config')
| -rw-r--r-- | modules/gallery/config/locale.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/gallery/config/locale.php b/modules/gallery/config/locale.php index 0509e45f..13de9098 100644 --- a/modules/gallery/config/locale.php +++ b/modules/gallery/config/locale.php @@ -29,14 +29,10 @@ $config['language'] = array('en_US', 'English_United States'); /** - * Locale timezone. Defaults to use the server timezone. + * Locale timezone. Set in 'Advanced' settings, falling back to the server's zone. * @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"; -} +$config['timezone'] = module::get_var("gallery", "timezone", date_default_timezone_get()); // i18n settings |
