Changeset 6714 for trunk/expressoMail1_2


Ignore:
Timestamp:
07/05/12 11:49:08 (12 years ago)
Author:
gustavo
Message:

Ticket #2607 - Acesso via Windows Phone não redireciona página automaticamente

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.functions.inc.php

    r5509 r6714  
    1616                { 
    1717 
     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 
    1822                    $timezone_index = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone']; 
    19                     $zones = $this->getTimezones(); 
    2023                    $user_timezone = $zones[$timezone_index]; 
     24 
    2125                    $tz = new DateTimeZone($user_timezone); 
    2226                    $gmt = new DateTimeZone("Etc/GMT+0"); 
     
    2428                    $offset = $tz->getOffset($gmttime); 
    2529                    return $offset; 
    26  
    2730                } 
    2831 
Note: See TracChangeset for help on using the changeset viewer.