Session time is incorrect due to Time Zone change.
See original GitHub issueOverview (Required)
The reproduction procedure is as follows.
- Visit Settings app. 1-1) Data & time > Set Time zone to London. (GMT+00:00) 1-2) Perform CLEAR DATA of droidkaigi2018 app.
- Launch droidkaigi2018 app. (Sessions will be displayed soon.)
- Finish app. (Back button)
- Visit Settings app. 4-1) Data & time > Set Time zone to Tokyo. (GMT+09:00)
- Launch droidkaigi2018 app. (The time of the displayed session is incorrect.)
As an impression that I read the code, the following code has doubts.
LocalDateTimeAdapter.kt
private val FORMATTER: DateTimeFormatter =
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")
fun parseDateString(dateString: String?): LocalDateTime =
LocalDateTime.parse(dateString, FORMATTER)
I guess that the time obtained from the server is based on Japan time. However, the application is parsing according to current Time Zone set for the terminal?
Links
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Why is the time zone for my Calendar or scheduled Sessions ...
Why is the time zone for my Calendar or scheduled Sessions incorrect? · 1. From any page, click your profile photo in the...
Read more >Sessions Display Wrong Times - Handshake Help Center
If unexpected start times are displayed or you're missing upcoming sessions, you may need to update your computer's timezone.
Read more >Time zone automatically switches to wrong time zone
I am running Office 2010 Pro Plus on a Server 2008 R2 remote desktop services (terminal server) server. We are in the "(UTC-5:00)...
Read more >Clock displaying incorrect timezone? - Help Center
Right-click on the time in the bottom-right of your screen and select Adjust Date/Time. A window will open. On the left side of...
Read more >Troubleshooting Client Time Zone Issues
The clock indicates the clients' time zone. Verify the time zone setting on the server and workstation (not the clock time).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@takahirom
Ok. I send PR! #371
@takahirom
I will introduce the code that I was verifying locally.
Also, we should write javadoc about the time zone assumed by LocalDateTime.