GLBasic forum

Main forum => GLBasic - en => Topic started by: msx on 2011-Sep-29

Title: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Sep-29
I tried to know the time of the device using PLATFORMINFO$("TIME") and shows me the correct time in IOS, but not in WebOS, showing the time in time zone UTC instead of UTC+2, as I have it configured in my Pre 2.

Gernot, help me please.  :nw:
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Sep-29
Please, move to Bug Report section.  :whistle:
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: Kitty Hello on 2011-Sep-29
"TIME" should always return global time. Check the timezones set.
I tried to implement "LOCALTIME", but found no time, yet. (or did I?)

Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: Ian Price on 2011-Sep-29
Works fine on TouchPad - my latest app uses it for something special...
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Sep-29
That's not exactly. In my iPhone gives me the time in time zone GMT +2 but pre2 gives me time in GMT.

If as you say would be the two in GMT.
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: Ian Price on 2011-Sep-29
Is your Pre using Network time? That might be the reason. I switched mine off and both Pre and TouchPad keep the proper time and give the same in "TIME"
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Sep-29
I tried it both ways. It is very rare but I need to do more tests later to see what is happening.

I will comment with more certainty what is the problem.

Thank you.
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Sep-29
I can confirm that there is disparity in results when running PLATFORMINFO$("TIME") in IOS, Windows, and WebOS. Why?.  :noggin:
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Sep-29
But the strange thing is that if I change to a different time zone, the time changes, so it does take into consideration the time zone but do not do it correctly, I think.

Any solution?
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: Slydog on 2011-Sep-29
Maybe it's not taking Daylight Savings Time (DST) into account?
(Or it IS, and your country doesn't use it?)
That would explain if it is always 1 hour off no matter what time zone you select.
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Sep-29
In Spain we have daylight savings, so we are in the time zone GMT +2 currently.

In winter GMT +1.

Any other ideas?  :nw:
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: MrTAToad on 2011-Sep-29
By the looks of it, there could be a bug in webOS...
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Oct-01
Apparently it's not a BUG because it only happens to me. Surely they sent me the phone that was flawed from the factory.

:rant:
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: ampos on 2011-Oct-01
Quote from: msx on 2011-Oct-01
Apparently it's not a BUG because it only happens to me. Surely they sent me the phone that was flawed from the factory.

:rant:

Ask your money back!

:nana:
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: MrTAToad on 2011-Oct-02
A chappie from Palm did appear to state there is a bug in the time system : https://developer.palm.com/distribution/viewtopic.php?f=70&t=12161

It actually also suggests a solution too :)
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Oct-02
I hope that Gernot can take a look!

:nw:
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: Marmor on 2011-Oct-03
wrong solution .
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: MrTAToad on 2011-Oct-03
Didn't it work ?
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: Kitty Hello on 2011-Oct-04
Can you test it yourself, please?
Code (glbasic) Select

PUTENV "TZ", ":/var/luna/preferences/localtime"
STDOUT "Time: "+PLATFORMINFO$("TIME")


If it works, I'll put that patch in.

Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: msx on 2011-Oct-04
Thanks Gernot, I will try it this afternoon.
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: ampos on 2011-Oct-08
I have this bug too on TP.

It is currently displaying GMT time.

In  Spain it is 3:00, GMT+1 +1 DLS but it is displaying 1:00.

I try the PUTENV thing.

On Win, it displays 2:00, but on TP it says still 1:00

:'(
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: Ian Price on 2011-Oct-08
Maybe, as I'm actually in/using GMT that's why I don't have this problem.

I have a similar time problem with my XBox and PS3 - the time on those is screwed up, even if it grabs network time it's wrong. XBox is exactly one hour out. PS3 quite a few minutes IIRC.
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: MrTAToad on 2011-Oct-09
Does the Palm clock program state the correct time ?

I can confirm that it is one hour out on my Palm too...  The PUTENV thing didn't work unfortunately...
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: ampos on 2011-Oct-09
Yes, the TouchPad clock displays the time correctly.

I will check it later on the Pre2
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: ampos on 2011-Oct-22
Fixed with WebOS 3.0.4 on TouchPad!
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: ampos on 2011-Oct-22
LOL

If I launch the program touching the pad, the clock is wrong.

If I launch the program from the putty shell, the clock is fine.

O_O :blink: O_O :blink: O_O :blink:
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: kanonet on 2011-Oct-22
I have no WebOS only limited linux experience, so maybe im wrong: is it possible, that you run the app with different user privileges? Maybe with touch its the standard (limited) user and within the shell its the root/admin user? Just an idea, but maybe it can help find the bug...
Title: Re: Possible bug in PLATFORMINFO$("TIME") in WebOS
Post by: MrTAToad on 2011-Oct-22
QuoteIf I launch the program touching the pad, the clock is wrong.

If I launch the program from the putty shell, the clock is fine.
Yes, it does appear to be a webOS bug...  Its getting the time offset either from an incorrect place when run from the pad, or its not getting it at all...