Re: [fpc-pascal] function now shows bad date (-2 hours)

2008-04-06 Thread Dusan Halicky
Is there any function which gives me local time depending on system locale settings? > I assume that the problem is that your main clock is set to GMT, so then you > have 1 hour timezone + 1 hour summer time difference. > > IOW, you need to correct that result for time differences. _

Re: [fpc-pascal] function now shows bad date (-2 hours)

2008-04-06 Thread Marco van de Voort
> I have this simple demo (in ubuntu, using fpc 2.2.0, locale is sk_SK.utf8): > > program test; > uses SysUtils; > begin > writeln(DateTimeToStr(now)); > end. > > When I compile it and run it it print 13:44: > > $ ./test > 6-4-08 13:44:32 > > But the actual date is 15:44: > > $ date > Ne apr

[fpc-pascal] function now shows bad date (-2 hours)

2008-04-06 Thread Dusan Halicky
Hi. I have this simple demo (in ubuntu, using fpc 2.2.0, locale is sk_SK.utf8): program test; uses SysUtils; begin writeln(DateTimeToStr(now)); end. When I compile it and run it it print 13:44: $ ./test 6-4-08 13:44:32 But the actual date is 15:44: $ date Ne apr 6 15:44:35 CEST 2008 What'