Ask / Submit
32

Wrong time zone in Android apps

asked 2013-12-24 23:20:30 +0200

juergbi gravatar image

updated 2014-10-09 17:32:43 +0200

simo gravatar image

Timestamps in Android apps such as WhatsApp show up in UTC instead of the configured time zone. Does anyone know of a workaround until this is fixed?

edit retag flag offensive close delete

Comments

3

the bug is bakc again in 1.1.1.27 =( at least for russia's moscow timezone. It was fine before update, but now: jolla's timezone is +3 (correct), and androide's timezone is +4

virgi26 ( 2014-12-29 05:05:06 +0200 )edit

same for sweden,time shows -1 hour wrong in android app,even in sailfish app" tv matchen" -1 hour wrong.never worked for me with time zone on or off (1.08.21 or 1.1.1.27)

sweden man ( 2014-12-31 22:17:58 +0200 )edit

Confirm @virgi26 — the same bug with me. Wrong timezone in all Android apps. Jolla's timezone is OK.

rburkhanov ( 2015-01-01 10:25:55 +0200 )edit

@juergbi@virgi26@sweden man@rburkhanov Is this still a valid question?

simo ( 2015-08-15 01:26:12 +0200 )edit

@simo i don't think so. So you can probably close it.

virgi26 ( 2015-08-15 02:14:47 +0200 )edit

9 Answers

Sort by » oldest newest most voted
5

answered 2013-12-24 23:31:44 +0200

Aard gravatar image

updated 2013-12-30 06:47:10 +0200

simo gravatar image

Edit /opt/alien/system/script/platform_envsetup.sh, you'll find some TZ related bits there. Note that it'll get overwritten on each alien dalvik update, and changing it might break startup of the alien runtime.

Edit: This was the accepted answer for the original workaround question - no reason to vote any more. Vote other written, or come up with even better answer for others to vote.

edit flag offensive delete publish link more

Comments

Thanks, that works fine for me for the time being.

juergbi ( 2013-12-25 11:38:28 +0200 )edit

I think that editing /opt/alien/system/script/platform_envsetup.sh is wrong way because of only Alien's timezones are outdated. Do not break right logic of setting alien runtime, you need update Alien's zoneinfo* instead.

Lightning ( 2015-01-06 22:52:07 +0200 )edit
5

answered 2013-12-30 06:38:07 +0200

simo gravatar image

updated 2013-12-30 06:52:31 +0200

Alien Dalvik should have access to the Sailfish config file where the user has set the timezone, and copy it from there to the alien config file (check & write command triggered when the timezone changes, and when the alien dalvik starts)

edit flag offensive delete publish link more
5

answered 2013-12-30 06:56:59 +0200

simo gravatar image

Alien Dalvik should acquire the timezone same way the Sailfish does (directly from mobile network)

edit flag offensive delete publish link more
5

answered 2015-01-06 22:43:03 +0200

Lightning gravatar image

updated 2015-01-06 22:55:32 +0200

Sailfish OS 1.1.1.27. I have Russian time zone YEKT (Yekaterinburg time) GMT+5. So, Sailfish OS show right time, but Android apps are not. (Our TZ was GMT+6 not long ago) I solved this problem in this way:

  1. Found and downloaded TZ generator for Android here: https://github.com/mcornejo/TimeZoneFixer
  2. You need Java Development Kit. I have version 1.8. And you need *nix desktop.
  3. This tool generates these files: zoneinfo.dat, zoneinfo.idx, zoneinfo.version files. Launch it on your desktop.
  4. Stop Alien Dalvik machine on Jolla. (Utilities in Settings)
  5. Go to: /opt/alien/system/usr/share/zoneinfo/
  6. Backup exist files zoneinfo* (rename to .orig for example)
  7. Copy generated fresh zoneinfo* files to this directory.
  8. Start Android app and check time

PS. I have tried different versions of ZoneCompactor.java. Some of them won't compiling, some give exceptions. I hate Android. It's another one bicycle without normal standards and realizations. Normal Linux distributions use time-honored mechanisms, tools, engines, and time zones is a part. But Google was built another format, another feature, so nice choice...

I remember that I easy updated TZ on N900 in 2011. Familiar tzdata files. Just install .deb package or copy files by hands.

Jolla is a breath of fresh air for me. I hope this post will help somebody.

Thanks. :-)

edit flag offensive delete publish link more
4

answered 2014-10-23 13:42:25 +0200

kriller gravatar image

1.1.0.38 now uses the Sailfish timezone for android apps. I can confirm that it works for Waze.

edit flag offensive delete publish link more

Comments

I can to confirm too. The ETA shows correctly now.

I did not know if this is due to the end of daylight saving time or due to 1.1.0.39 update. :)

cocovina ( 2014-10-30 09:07:26 +0200 )edit

confirmed, i am late noticing this in 1.1.1.27 :D

mosen ( 2014-12-27 14:00:03 +0200 )edit

Not for me, using TZ Argentina/Buenos_Aires. Android apps still show UTC.

WhyNotHugo ( 2015-01-29 17:10:19 +0200 )edit
3

answered 2015-01-07 16:23:07 +0200

cocovina gravatar image

The WhatsApp shows strange times in messages time on my Jolla. Does anybody have the same problem? See group conversation screenshots watime.jpg. Message text is real send time. Left - my Jolla. Right - LG Android.

edit flag offensive delete publish link more

Comments

@juergbi:Thanks. :)

cocovina ( 2015-01-07 16:47:41 +0200 )edit
3

answered 2015-01-26 20:58:27 +0200

coderus gravatar image

updated 2015-01-26 21:16:04 +0200

in 1.1.1.27 /opt/alien/system/usr/share/zoneinfo/zoneinfo.version says it 2012c version. What a shame! It should be updated in future release!

Download 2014i files: https://dl.dropboxusercontent.com/u/26659227/jolla/tzdata2014i.zip and replace /opt/alien/system/usr/share/zoneinfo/ contents

edit flag offensive delete publish link more

Comments

Yay, TZ data is updated for aliendalvik 1.1.2.16 (Yliaavanlampi)! Hower other zoneinfo files are kept old (WTF?):

$ head {/system,/opt/alien/system_jolla,/opt/alien/system}/usr/share/zoneinfo/zoneinfo.version
==> /system/usr/share/zoneinfo/zoneinfo.version <==
2012c

==> /opt/alien/system_jolla/usr/share/zoneinfo/zoneinfo.version <==
2012c

==> /opt/alien/system/usr/share/zoneinfo/zoneinfo.version <==
2014i
Self-Perfection ( 2015-03-05 14:08:54 +0200 )edit
1

answered 2014-06-10 14:26:01 +0200

grande gravatar image

Hi, We have released a fix for this in Alien with update 7

edit flag offensive delete publish link more

Comments

3

still doesn't work for me. I run WAZE and the ETA still shows time as GMT+0 offset when I live in GMT+8 offset timezone. the phone is picking up the timezone from the mobile operator automatically. I tried setting it to manual timezone and it's still the same.

droll ( 2014-06-20 17:35:12 +0200 )edit
2

Not fixed in 1.0.7.16!

JarnoF ( 2014-07-01 16:15:38 +0200 )edit

I confirm, not fixed. Question is reopened.

simo ( 2014-07-01 16:24:21 +0200 )edit

same problem with Waze...

Schturman ( 2014-07-03 20:14:33 +0200 )edit
1

Sorry for the down vote @grande, I gave it as when something is declared as fixed and you get 3 opposite comments telling it isn't, you could react to these within a week or so by editing your answer.

simo ( 2014-07-12 04:26:02 +0200 )edit
0

answered 2014-12-27 13:58:38 +0200

mosen gravatar image

Can anybody else confirm this solved/released as of 1.1.1.27?? I have the correct time in Waze and NavFree now since i factory-restored and upgraded!

edit flag offensive delete publish link more

Comments

1

No, 1.1.1.27 not solved, at least in Russia (we have additional problem with recent timezone change. For details check this — so this may be only our issue).

rburkhanov ( 2015-01-01 10:30:02 +0200 )edit
Login/Signup to Answer

Question tools

Follow
12 followers

Stats

Asked: 2013-12-24 23:20:30 +0200

Seen: 1,879 times

Last updated: Jan 26 '15