Use UTC with 'Z' suffix for timestamps to avoid ambiguity#369
Closed
Use UTC with 'Z' suffix for timestamps to avoid ambiguity#369
Conversation
Co-authored-by: keighrim <9062727+keighrim@users.noreply.github.com>
Co-authored-by: keighrim <9062727+keighrim@users.noreply.github.com>
Co-authored-by: keighrim <9062727+keighrim@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update timestamp output to use UTC for consistency
Use UTC with 'Z' suffix for timestamps to avoid ambiguity
Feb 19, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #369 +/- ##
===========================================
- Coverage 71.66% 71.65% -0.01%
===========================================
Files 22 22
Lines 2915 2918 +3
===========================================
+ Hits 2089 2091 +2
- Misses 826 827 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Timestamps were generated using naive
datetime.now(), causing ambiguity in environments with different timezone configurations (e.g., Docker containers vs. host systems).Changes
mmif/serialize/mmif.py: Generate timestamps usingdatetime.now(timezone.utc)for explicit UTC awarenessmmif/serialize/model.py: Encoder converts UTC timestamps from ISO format+00:00toZsuffix (only fortimezone.utcinstances)tests/test_serialize.py: Added verification that timestamps are UTC-aware and serialize with 'Z' suffixExample
The encoder preserves non-UTC timezone offsets unchanged (e.g.,
+05:00) and only applies the 'Z' conversion to timestamps explicitly in UTC.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/clamsproject/mmif-python/git/refs/tags/usr/bin/curl curl --silent -H Authorization: token ****** REDACTED(http block)https://api.github.com/repos/clamsproject/mmif/git/refs/tags/usr/bin/curl curl --silent -H Authorization: token ****** REDACTED(http block)https://api.github.com/repos/clamsproject/mmif/tagsexec(compile('''
This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
- It imports setuptools before invoking setup.py, to enable projects that directly
import from
distutils.coreto work with newer packaging standards.#` (http block)
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.