Getting incorrect time from compiler

Linux specific forum
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Getting incorrect time from compiler

Post 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.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post by olejr »

Hmm.. Same here using Mandrake 10.1..
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Does that mean we have to code in the time difference? Shouldn't be nessecary should it?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

I use "Date()" instead of "#PB_Compiler_Date" and I do not have trouble (since the last update). Would this work?
-Beach
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post 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.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

Oops, sorry... :oops: :)
-Beach
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post 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
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Sorry for the late reply.
No, I'm at CET which is GMT +1
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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?
--Kale

Image
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It's probably a bug, i will adjust it on linux
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post 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 :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Post Reply