Skip to content

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

@Victorq10

Description

@Victorq10

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 !!! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions