Closed Bug 975815 Opened 10 years ago Closed 6 years ago

default gaia timezone is overwritten by settings date & time/FTU

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-, b2g-v1.4 affected, b2g-v2.0 affected, b2g-v2.0M affected, b2g-v2.1 affected, b2g-v2.1S affected, b2g-v2.2 affected, b2g-master affected)

RESOLVED WONTFIX
blocking-b2g -
Tracking Status
b2g-v1.4 --- affected
b2g-v2.0 --- affected
b2g-v2.0M --- affected
b2g-v2.1 --- affected
b2g-v2.1S --- affected
b2g-v2.2 --- affected
b2g-master --- affected

People

(Reporter: nhirata, Unassigned, NeedInfo)

References

Details

1. change settings.json to have the timezone of Europe/Amsterdam
2. reboot the phone and verify the change by typing:
adb shell getprop persist.sys.timezone
3. go to settings -> date & time or launch ftu
4. check timezone via adb shell getprop persist.sys.timezone

Expected: Europe/Amsterdam
Actual: America/New_York

Note: 
1. affects MWC demo; most people won't hit this path as they normally set time/date through ftu first.
I filed a bug under the flash tool to see if there's any way we could rework this:
https://github.com/Mozilla-TWQA/B2G-flash-tool/issues/322

Having said that, if you try to set the timezone via the setprop:
adb shell setprop persist.sys.timezone $TIMEZONE

it will get overwritten when you go to settings, as the default value is America/New York:
http://mxr.mozilla.org/gaia/source/shared/js/tz_select.js#41

I think this is one of the reasons why we see weirdness with the wrong time.
Triage: not a shipping blocker. Arthur may provide suggestion on this.
blocking-b2g: 2.2? → -
Flags: needinfo?(arthur.chen)
Naoki, could you try to include the "time.timezone.user-selected" field with the timezone you want in settings.json?
Flags: needinfo?(arthur.chen)
Flags: needinfo?(nhirata.bugzilla)
What value do I put in here?  "Los_Angeles"?  I looked at the shared/resources/tz.json

I tried that value and it still defaults to New York.
Flags: needinfo?(nhirata.bugzilla) → needinfo?(crh0716)
Flags: needinfo?(jlorenzo)
Flags: needinfo?(jlorenzo)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.