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

Use UTC when marshalling times and Local when unmarshalling #5416

Conversation

smarterclayton
Copy link
Contributor

Marshal to UTC and read into Local, which means clients automatically
show local time and stored values are always consistent.

Closes remaining issue from #5183

@googlebot
Copy link

Thanks for your pull request.

It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/.

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits.

Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name.

@satnam6502 satnam6502 self-assigned this Mar 13, 2015
@satnam6502 satnam6502 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 13, 2015
@satnam6502
Copy link
Contributor

Second attempt at kicking Travis.

@satnam6502
Copy link
Contributor

Third attempt at kicking Travis.

@satnam6502
Copy link
Contributor

@smarterclayton why does this keep failing in Travis?

@smarterclayton
Copy link
Contributor Author

Good question, I'll look. Might be nanosecond precision or something specific about the TZ travis is in. Dates are fun...

----- Original Message -----

@smarterclayton why does this keep failing in Travis?


Reply to this email directly or view it on GitHub:
#5416 (comment)

@smarterclayton smarterclayton force-pushed the use_utc_serialized_and_local_otherwise branch from 833ab0f to dc1580a Compare March 18, 2015 21:24
Marshal to UTC and read into Local, which means clients automatically
show local time and stored values are always consistent.
@smarterclayton smarterclayton force-pushed the use_utc_serialized_and_local_otherwise branch from dc1580a to d516a86 Compare March 18, 2015 21:44
@smarterclayton
Copy link
Contributor Author

Ok, I fixed the travis problem. Unmarshal does not return a deterministic "Location" pointer. Changed the tests to verify the timezone and offset were identical, then checked UnixNano. Should be ready for rereview and tests pass.

@smarterclayton
Copy link
Contributor Author

Flake, rerunning the one travis.

@satnam6502
Copy link
Contributor

Still red.

@smarterclayton
Copy link
Contributor Author

Failure is unrelated - another issue open for it already.

@smarterclayton
Copy link
Contributor Author

Travis is green

@bgrant0607
Copy link
Member

Sorry, just past merge hours.

Oncall: please merge in the morning.

satnam6502 added a commit that referenced this pull request Mar 20, 2015
…ocal_otherwise

Use UTC when marshalling times and Local when unmarshalling
@satnam6502 satnam6502 merged commit ec77230 into kubernetes:master Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants