Skip to content

toJSON dropping POSIX timezone data #177

@ieaves

Description

@ieaves

The timezone aware portion of POSIX datetimes appear to be being dropped during JSON encoding.

for example:

Browse[2]> as.POSIXlt(Sys.time(), tz= 'UTC')
[1] "2017-04-13 19:12:10 UTC"

But,

Browse[2]> jsonlite::toJSON(as.POSIXlt(Sys.time(), tz= 'UTC'))
["2017-04-13 19:13:19"] 

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