Skip to content

Fix inconsistent datetime format in /api/packages/:name/info - #623

Open
shivkr6 wants to merge 1 commit into
dlang:masterfrom
shivkr6:fix/dateAdded-timezone
Open

Fix inconsistent datetime format in /api/packages/:name/info#623
shivkr6 wants to merge 1 commit into
dlang:masterfrom
shivkr6:fix/dateAdded-timezone

Conversation

@shivkr6

@shivkr6 shivkr6 commented Aug 26, 2026

Copy link
Copy Markdown

Convert dateAdded to UTC before serializing to ISO extended string, ensuring the timezone suffix (Z) is always present. Previously, BsonObjectID.timeStamp returned a SysTime in server-local timezone which omitted the offset when serialized, making it inconsistent with all other date fields in the API.

Fixes: #351

Convert dateAdded to UTC before serializing to ISO extended string,
ensuring the timezone suffix (Z) is always present. Previously,
BsonObjectID.timeStamp returned a SysTime in server-local timezone
which omitted the offset when serialized, making it inconsistent
with all other date fields in the API.

Fixes: dlang#351
Signed-off-by: Shivang K Raghuvanshi <shivangraghuvanshi2005@gmail.com>
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.

inconsistent datetime format

1 participant