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

fix: Make uid.Timestamp work on 32bit architectures #11353

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

pterjan
Copy link
Contributor

@pterjan pterjan commented Dec 28, 2024

strconv.Atoi fails because the nanoseconds part of the string does not fit in an int, instead use ParseInt to get an int64.

As time.Date only takes an int for the nanoseconds part, use Add() separately instead as it takes a Duration, which is an int64.

Fixes #11351

strconv.Atoi fails because the nanoseconds part of the string does not fit in an int, instead use ParseInt to get an int64.

As time.Date only takes an int for the nanoseconds part, use Add() separately instead as it takes a Duration, which is an int64.
@pterjan pterjan requested a review from a team as a code owner December 28, 2024 17:04
@quartzmo quartzmo added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 30, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 30, 2024
@quartzmo quartzmo merged commit e41a153 into googleapis:main Dec 30, 2024
8 checks passed
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.

internal/uid: Timestamp() does not work on 32bit architectures
3 participants