[fpc-pascal] Timezone information in a dataset datetime field?- updated

Ludo Brands ludo.brands at free.fr
Mon Jul 25 10:50:59 CEST 2011


> > 1. Is there any way of knowing what kind of timezone a 
> datetime value 
> > should be in a FPC dataset? (I suppose not...)
> 
> No, there is no way. It's always supposed to be 'local time'.
> 

That is also what most of the underlying databases do. They store everything
in UTC and convert to local time. Only for those that support "timezoned"
field types (fe. oracle timestamp_TZ) you can specify a timezone when
entering data. MySQL fe. doesn't have support for this.  

Ludo  




More information about the fpc-pascal mailing list