Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Use utcnow instead of now#569

Merged
c24t merged 1 commit intocensus-instrumentation:masterfrom
c24t:use-utcnow
Mar 20, 2019
Merged

Use utcnow instead of now#569
c24t merged 1 commit intocensus-instrumentation:masterfrom
c24t:use-utcnow

Conversation

@c24t
Copy link
Copy Markdown
Member

@c24t c24t commented Mar 20, 2019

We were using datetime.now in stats/metrics conversions, which don't mix with the tz-aware datetimes used in stats. This could result in converted points being utc offset many hours off when exported.

Ultimately all datetimes should be removed for #502.

@c24t c24t added the bug label Mar 20, 2019
@c24t c24t requested review from a team, reyang and songy23 as code owners March 20, 2019 16:01
@c24t c24t merged commit df8f064 into census-instrumentation:master Mar 20, 2019
@c24t c24t deleted the use-utcnow branch March 20, 2019 18:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants