Skip to content

fix #22463 - SOURCE_DATE_EPOCH parsing incorrectly affected by system timezone#22464

Merged
thewilsonator merged 1 commit intodlang:masterfrom
ibuclaw:issue22463
Jan 28, 2026
Merged

fix #22463 - SOURCE_DATE_EPOCH parsing incorrectly affected by system timezone#22464
thewilsonator merged 1 commit intodlang:masterfrom
ibuclaw:issue22463

Conversation

@ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Jan 28, 2026

Use asctime(gmtime()) instead of ctime(). Setting SOURCE_DATE_EPOCH implies UTC.

Closes #22463.

@ibuclaw ibuclaw requested a review from Geod24 January 28, 2026 08:44
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

⚠️⚠️⚠️ Warnings ⚠️⚠️⚠️

  • In preparation for migrating from Bugzilla to GitHub Issues, the issue reference syntax has changed. Please add the word "Bugzilla" to issue references. For example, Fix Bugzilla Issue 12345 or Fix Bugzilla 12345.(Reminder: the edit needs to be done in the Git commit message, not the GitHub pull request.)

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#22464"

@thewilsonator thewilsonator merged commit 7a1624b into dlang:master Jan 28, 2026
42 checks passed
@ibuclaw ibuclaw deleted the issue22463 branch January 28, 2026 09:41
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.

SOURCE_DATE_EPOCH parsing incorrectly affected by system timezone

3 participants