iamshaunjp / iamshaunjp/flutter-beginners-tutorial
lesson-28 — Adjust time to locale with negative offset
Open
- Dominant language
- No language data
- Stars
- 1.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
1)
Update
String offset = data['utc_offset'].substring(1,3);
with
String offset = data['utc_offset'].substring(0,3);
To keep a sign.
2) Use "utc_datetime" instead of "datetime".
// it is strange why
// DateTime.parse(datetime) does not adjust time with offset in the "datetime" string)
3) Another improvement when offset is with an half of hour.
Thank you for videos on Youtube !!! :)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.