Skip to content

Conversation

@pitrou
Copy link
Member

@pitrou pitrou commented Jun 24, 2019

The failure would only manifest on systems with a timezone ahead of UTC
(so probably not on most public CI systems).

The failure would only manifest on systems with a timezone ahead of UTC
(so probably not on most public CI systems).
Copy link
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

time_t Epoch() {
// HACK: MSVC mktime() fails on UTC times before 1970-01-01 00:00:00.
// But it first converts its argument from local time to UTC time,
// so we ask for 1970-01-02 to avoid failing in timezones ahead of UTC.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, isn't that lovely

@wesm wesm closed this in 073cf78 Jun 24, 2019
@pitrou pitrou deleted the ARROW-5709-gandiva-date-time-failure branch June 25, 2019 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants