Skip to:
Content

bbPress.org

Changeset 2180


Ignore:
Timestamp:
06/14/2009 08:52:44 AM (17 years ago)
Author:
sambauers
Message:

Stop failure of negative GMT offsets to translate to zoneinfo equivalents. Props burtadsit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/options-general.php

    r2179 r2180  
    156156        } elseif ( $_gmt_offset > 0 ) {
    157157            // Zoneinfo has these signed backwards to common convention
    158             $timezone_string = 'Etc/GMT-' . $_gmt_offset;
     158            $timezone_string = 'Etc/GMT-' . abs( $_gmt_offset );
    159159        } else {
    160160            // Zoneinfo has these signed backwards to common convention
    161             $timezone_string = 'Etc/GMT+' . $_gmt_offset;
     161            $timezone_string = 'Etc/GMT+' . abs( $_gmt_offset );
    162162        }
    163163        unset( $_gmt_offset );
Note: See TracChangeset for help on using the changeset viewer.