Skip to content

IDateTime fails on POSIXct without tzone. #1973

@lbilli

Description

@lbilli

The function IDateTime generates an error when applied to POSIXct values without tzone attribute:

library(data.table)
IDateTime(Sys.time())
# Error in if (tz == "UTC") { : argument is of length zero

Versions
R: 3.3.2
data.table: 1.10.0 and latest 1.10.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions