[fpc-devel] FPC V3.0.0 LocalTimeToUniversal() error
    José Mejuto 
    joshyfun at gmail.com
       
    Wed Jun 29 22:51:02 CEST 2016
    
    
  
El 29/06/2016 a las 22:35, vfclists . escribió:
> Does this have to do with some questionable Microsoft formulae which
> prompted this query -
> http://stackoverflow.com/questions/2779948/subroutine-to-apply-daylight-bias-to-display-time-in-local-dst
Hello,
Only Now() can be converted to UTC using that formula, and only UTC Now 
can be converted back to your local zone time, any other time/date 
conversions could be wrong because you do not know how to convert from 
UTC to Accra (stackoverflow thread) unless your system is located in 
Accra, and as noted only "NOW()" values are valid.
For inter-zone-across-history time conversions another routines and 
"databases" must be used.
-- 
    
    
More information about the fpc-devel
mailing list