Page 1 of 1
Getting incorrect time from compiler
Posted: Mon Apr 11, 2005 11:46 am
by GeoTrail
When I run this:
Code: Select all
Date$ = FormatDate("%dd.%mm.%yy %hh:%ii:%ss", #PB_Compiler_Date)
Debug Date$
For some reason it returns:
[Debugger] 11.04.05 10:33:29
when time actually is 12:33:29. It works in Windows, and I'm not sure if this is a bug in PB, in the Linux distro I'm using (Ubuntu) or if there is some setting in Linux I need to do. The time which is displayed in Gnome is correct.
Posted: Mon Apr 11, 2005 1:41 pm
by olejr
Hmm.. Same here using Mandrake 10.1..
Posted: Mon Apr 11, 2005 2:39 pm
by GeoTrail
Does that mean we have to code in the time difference? Shouldn't be nessecary should it?
Posted: Mon Apr 11, 2005 3:44 pm
by Beach
I use "Date()" instead of "#PB_Compiler_Date" and I do not have trouble (since the last update). Would this work?
Posted: Mon Apr 11, 2005 6:33 pm
by GeoTrail
The #PB_Compiler_Date indicates the date on compilation of the program, the date function just shows the current date. That isn't the same thing.
Posted: Mon Apr 11, 2005 7:00 pm
by Beach
Oops, sorry...

Posted: Tue Apr 12, 2005 7:39 pm
by Berikco
Seems to be a timezone problem, maybe you live at GMT + 2
All Linux and WinNT/XP internal times are GMT based
So probably Fred missed something on Linux
Posted: Sat May 14, 2005 3:03 am
by GeoTrail
Sorry for the late reply.
No, I'm at CET which is GMT +1
Posted: Sat May 14, 2005 2:40 pm
by Kale
GeoTrail wrote:Sorry for the late reply.
No, I'm at CET which is GMT +1
Are you sure thats not CEsT which is CET daylight saving hours, which is GMT+2?
Posted: Sat May 14, 2005 4:29 pm
by Fred
It's probably a bug, i will adjust it on linux
Posted: Sat May 14, 2005 10:21 pm
by GeoTrail
Well, there is a one hour time difference between England and Norway and everything else I fill in on forums especially seems to give the correct time
Thanks Fred
