Hi,

I have a problem. Example this unix timestamp: 1280166617.
DateTimeToString(UnixToDateTime(1280166617)) should give me 2010-07-26
19:50:17 (in country: Poland) but it give me 2010-07-26 17:50:17. I must add
two hours:
UnixToDateTime(1280166617 + (120*60));

But what about when someone run my program in a different time zone? On
linux, lazarus have TZSeconds in unixutils, but on windows there is no
unixutils. I found this: http://wiki.lazarus.freepascal.org/PascalTZ. Have
not tested this yet, because maybe there is a better solution?

Regards, Dibo
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to