Skip to content

Conversation

tiffzhao5
Copy link
Contributor

Pull Request Summary

Logs emitted at timestamp for logging.

Test Plan and Usage Guide

image

How did you validate that your PR works correctly? How do you run or demo the code? Provide enough detail so a reviewer can reasonably reproduce the testing procedure. Paste example command line invocations if applicable.

@tiffzhao5 tiffzhao5 requested a review from a team February 23, 2024 05:51
@@ -122,6 +124,7 @@ def handle(
return
response["task_id"] = task_id
data_record = {
"EMITTED_AT": datetime.now(pytz.timezone("US/Pacific")).strftime("%Y-%m-%dT%H:%M:%S"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should be a UTC timestamp so there's no timezone or daylight saving time information baked into the dates here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm fine with using UTC but seems like we're using PST elsewhere in the codebase?

timestamp = datetime.now(pytz.timezone("US/Pacific")).strftime("%Y-%m-%d %H:%M:%S %Z")

@tiffzhao5 tiffzhao5 merged commit b3a0036 into main Feb 23, 2024
@tiffzhao5 tiffzhao5 deleted the tiffany/add-timestamp branch February 23, 2024 06:43
@yunfeng-scale yunfeng-scale mentioned this pull request Mar 6, 2024
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.

2 participants