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

#818: unify RFC 3339 timestamp format strubg #835

Merged
merged 3 commits into from
Apr 16, 2015
Merged

#818: unify RFC 3339 timestamp format strubg #835

merged 3 commits into from
Apr 16, 2015

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Apr 16, 2015

Use consistently across storage and pubsub.

Fixes #818.

Uses #816 as a diffbase.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 16, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e329bff on tseaver:818-unify_rfc_3339_format into 40d84e9 on GoogleCloudPlatform:master.

@tseaver
Copy link
Contributor Author

tseaver commented Apr 16, 2015

Rebased after merge of #816 to master.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 5d13cbe on tseaver:818-unify_rfc_3339_format into * on GoogleCloudPlatform:master*.

@dhermes
Copy link
Contributor

dhermes commented Apr 16, 2015

LGTM. Thanks for doing this!

@dhermes
Copy link
Contributor

dhermes commented Apr 16, 2015

Actually wait, don't we want to put a timezone on the stamps in storage?

@@ -749,7 +749,7 @@ def time_deleted(self):
"""
value = self._properties.get('timeDeleted')
if value is not None:
return datetime.datetime.strptime(value, _GOOGLE_TIMESTAMP_FORMAT)
return datetime.datetime.strptime(value, _RFC3339_MICROS)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@tseaver
Copy link
Contributor Author

tseaver commented Apr 16, 2015

This PR fixes the storage code which used isoformat and _GOOGLE_TIMESTAMP_FORMAT.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1d35fe8 on tseaver:818-unify_rfc_3339_format into 2c1e1ac on GoogleCloudPlatform:master.

@dhermes
Copy link
Contributor

dhermes commented Apr 16, 2015

Everything LGTM if it LGTY

tseaver added a commit that referenced this pull request Apr 16, 2015
#818: unify RFC 3339 timestamp format strubg
@tseaver tseaver merged commit 286207b into googleapis:master Apr 16, 2015
@tseaver tseaver deleted the 818-unify_rfc_3339_format branch April 16, 2015 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify conversion of datetime <--> timestamp strings
4 participants