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:
Please, move to Bug Report section. :whistle:
"TIME" should always return global time. Check the timezones set.
I tried to implement "LOCALTIME", but found no time, yet. (or did I?)
Works fine on TouchPad - my latest app uses it for something special...
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.
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"
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.
I can confirm that there is disparity in results when running PLATFORMINFO$("TIME") in IOS, Windows, and WebOS. Why?. :noggin:
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?
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.
In Spain we have daylight savings, so we are in the time zone GMT +2 currently.
In winter GMT +1.
Any other ideas? :nw:
By the looks of it, there could be a bug in webOS...
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:
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:
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 :)
I hope that Gernot can take a look!
:nw:
wrong solution .
Didn't it work ?
Can you test it yourself, please?
PUTENV "TZ", ":/var/luna/preferences/localtime"
STDOUT "Time: "+PLATFORMINFO$("TIME")
If it works, I'll put that patch in.
Thanks Gernot, I will try it this afternoon.
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
:'(
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.
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...
Yes, the TouchPad clock displays the time correctly.
I will check it later on the Pre2
Fixed with WebOS 3.0.4 on TouchPad!
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:
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...
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...