Ignore:
Timestamp:
07/06/12 08:37:46 (12 years ago)
Author:
eduardow
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/inc/class.functions.inc.php

    r5509 r6731  
    1515                function CalculateDateOffset() 
    1616                { 
     17                                         
    1718 
     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(); 
    20                     $user_timezone = $zones[$timezone_index]; 
     23                    $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.