Skip to content

How to use a client's machine Date Time Object instead of GMT +0 #28

@razam217

Description

@razam217

Whenever I try to convert the date string, it changes the time from GMT+5 (Pakistan Time) to GMT+0, how can I disable this functionality, so that it wouldn't change the time before and after the conversion.

This date:
Sun Jan 25 2015 00:40:00 GMT+0500 (Pakistan Standard Time)
Sun Jan 25 2015 01:35:00 GMT+0500 (Pakistan Standard Time)

is converted to this date:
2015-01-24T20:35:00.000Z
2015-01-24T19:40:00.000Z

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