Changeset 6731 for branches/2.4/expressoMail1_2/inc/class.functions.inc.php
- Timestamp:
- 07/06/12 08:37:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/expressoMail1_2/inc/class.functions.inc.php
r5509 r6731 15 15 function CalculateDateOffset() 16 16 { 17 17 18 19 $zones = $this->getTimezones(); 20 $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] : sprintf("%s", array_search("America/Sao_Paulo", $zones)); 21 18 22 $timezone_index = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone']; 19 $ zones = $this->getTimezones();20 $user_timezone = $zones[$timezone_index]; 23 $user_timezone = $zones[$timezone_index] 24 21 25 $tz = new DateTimeZone($user_timezone); 22 26 $gmt = new DateTimeZone("Etc/GMT+0"); … … 24 28 $offset = $tz->getOffset($gmttime); 25 29 return $offset; 26 27 30 } 28 31
Note: See TracChangeset
for help on using the changeset viewer.