-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect timezone is being chosen in FirstUse #2
Comments
It seems that no offset is being populated for the countries anymore. Need to check luna-init to see if something needs updating in the timeZone files etc |
@Tofee It seems that "offsetFromUTC" ends up being 0 in all cases, causing the code in FirstUse not to work. I guess the issue might be in here somehow? https://github.com/webosose/luna-sysservice/blob/16eca0bf1b09bbbfeabbbb06c782b3167ea7979f/Src/TimePrefsHandler.cpp#L248-L251 which used to be: Which uses this file as source: https://github.com/webosose/luna-init/blob/master/src/ext-timezones.json |
Mmh both the new and the old code look good... It would need a pass in a debugger I think, to see more clearly what happens there. |
A bit weird here... The value is shown correctly in another call:
|
luna-send -n 1 luna://com.palm.systemservice/getPreferenceValues '{"key": "timeZone"}' also shows the incorrect value |
Ok seems issue might be in https://github.com/webosose/luna-init/blob/master/src/gen-ext-timezones.py The generated ext-timezones.json doesn't contain the correct offsetFromUTC. Culprit is likely https://github.com/webosose/luna-init/blob/master/src/gen-ext-timezones.py#L121 |
OK seems we need a new syntax in Python3: https://stackoverflow.com/questions/15940280/how-to-get-utc-time-in-python I'll prepare a fix |
Seems I have a rebased and patched luna-init from OSE already in the works. Will test that first and add it to that PR |
Mostly solved now, just the selection of the correct timezone based on the country isn't working (anymore). Need to debug it a bit further: https://github.com/webOS-ports/org.webosports.app.firstuse/blob/master/qml/TimeZonePage.qml#L169 |
Describe the bug
The timezone chosen in FirstUse is incorrect, probably due to a change in the timezone data provided.
To Reproduce
In FirstUse select your country, when you come to the timezone page you'll notice it doesn't show or select the correct timezone.
Expected behavior
The correct timezone should be automatically selected based on country or available MCC/MNC when a SIM is present.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: