Skip to content
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

lesson-28 — Adjust time to locale with negative offset #44

Open
Victorq10 opened this issue Jul 21, 2021 · 1 comment
Open

lesson-28 — Adjust time to locale with negative offset #44

Victorq10 opened this issue Jul 21, 2021 · 1 comment

Comments

@Victorq10
Copy link

Victorq10 commented Jul 21, 2021

Update
String offset = data['utc_offset'].substring(1,3);
with
String offset = data['utc_offset'].substring(0,3);

To keep a sign.

  1. Use "utc_datetime" instead of "datetime".
    // it is strange why
    // DateTime.parse(datetime) does not adjust time with offset in the "datetime" string)

  2. Another improvement when offset is with an half of hour.

Thank you for videos on Youtube !!! :)

@bksubhuti
Copy link

like Myanmar Where I live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants