Skip to content

Conversation

@TeBoring
Copy link
Contributor

@TeBoring TeBoring commented Mar 17, 2019

Fix #5884

@TeBoring TeBoring changed the title Ruby fix Replace strptime with custom implementation Mar 17, 2019
@TeBoring TeBoring requested a review from haberman March 17, 2019 05:38
@TeBoring TeBoring added the ruby label Mar 17, 2019
@TeBoring TeBoring merged commit 57b6597 into protocolbuffers:3.7.x Mar 20, 2019
@TeBoring TeBoring deleted the ruby-fix branch March 21, 2019 04:31

/* Normalize tm */
seconds = timegm(&p->tm);
seconds = mktime(&p->tm) - timezone;
Copy link

Choose a reason for hiding this comment

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

This does not work on *BSD platforms where timezone is not a long int variable but a function.

Is this change due to timegm() not available everywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants