Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace strptime with custom implementation #5906

Merged
merged 6 commits into from
Mar 20, 2019

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
@@ -14311,7 +14311,7 @@ static bool end_timestamp_zone(upb_json_parser *p, const char *ptr) {
}

/* 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.

None yet

4 participants