forked from digitalbitbox/bitbox-wallet-app
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android: fix timezone so the BitBox02 shows the correct time
On Android, due to a bug in Go (golang/go#20455), the local timezone is not correct. It is always UTC. As a result, when restoring a backup on the BitBox02, the BitBox02 displays the current time in UTC instead of the local time. This commit contains a workaround to fix the timezone on Android. Alternative considered: getting the timezone offset in native Android code and sending it to Go-land via backend.Environment. I did not pursue this as a quick search didn't turn up an easy way to get the timezone offset on Android which takes into account daylight-savings etc.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters