Changeset 4

Show
Ignore:
Timestamp:
03/12/07 10:05:01 (2 years ago)
Author:
evilbunny
Message:

Updated timezone to cope with +/- 13 instead of 12

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • MIDlet/src/FreeAuth.java

    r1 r4  
    692692                        } catch (NumberFormatException err) { 
    693693                                System.out.println("Corrupted DB!"); 
    694                                 timez = -1
     694                                timez = -9
    695695                        } catch (RecordStoreException rse) { 
    696696                                System.out.println("Empty DB!"); 
    697                                 timez = -1
    698                         } 
    699                 } 
    700  
    701                 if(timez < -1 | timez > 24
     697                                timez = -9
     698                        } 
     699                } 
     700 
     701                if(timez < -1 | timez > 25
    702702                { 
    703703                        timez = 12; 
     
    14071407                                        timez=-1; 
    14081408 
    1409                                 if(timez > 24
    1410                                         timez=24
     1409                                if(timez > 25
     1410                                        timez=25
    14111411 
    14121412                                repaint(); 
     
    15101510                                        { 
    15111511                                                System.out.println("Clock skew in phone detected! Attempting to correct!"); 
    1512                                                 for(int i = -1; i <= 24; i++) 
     1512                                                for(int i = -1; i <= 25; i++) 
    15131513                                                { 
    15141514                                                        tmpepoch = (((now.getTime() / 10000) + ((timez - 12) * 360)) / 6); 
     
    15161516                                                        { 
    15171517                                                                timez = i; 
    1518                                                                 int tr = -1
     1518                                                                int tr = -9
    15191519                                                                try 
    15201520                                                                {