Thomas Bruederli
2014-12-27 be363cdf92471d0d721db35570bf3d184c4ec387
Use current year for timezone offset display
1 files modified
2 ■■■ changed files
program/steps/settings/func.inc 2 ●●● patch | view | raw | blame | history
program/steps/settings/func.inc
@@ -219,7 +219,7 @@
                foreach (DateTimeZone::listIdentifiers() as $i => $tzs) {
                    try {
                        $tz      = new DateTimeZone($tzs);
                        $date    = new DateTime('2012-12-21', $tz);
                        $date    = new DateTime(date('Y') . '-12-21', $tz);
                        $offset  = $date->format('Z') + 45000;
                        $sortkey = sprintf('%06d.%s', $offset, $tzs);
                        $zones[$sortkey] = array($tzs, $date->format('P'));