Skip to content

Date's timezones #144

@obrunsmann

Description

@obrunsmann

Hello,

we're migrating to this package from our own Stream API implementation. While all the timestamps coming from the API are UTC we also need to parse them as UTC to let them automatically convert into local time.

What I've done was:

DateTime.parse('${json['time'] as String}Z')

This worked perfectly fine and got converted in the local timezone.

Right now:

print(activity.time!.isUtc);

Prints false which is not correct - the time actually is UTC :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions