govuk-one-login / devplatform-upload-action

Digital identity dev platform GitHub action to upload artifacts to deploy
MIT License
0 stars 0 forks source link

PLAT-4232 - changing mergetime to always be UTC #4

Closed angold5 closed 5 months ago

angold5 commented 5 months ago

PLAT-4232 - changing mergetime to always be UTC

The DATE below shows as "+0100" and "+0000"

commit 7c4069ed969c856HEAD -> PLAT-4232-mergetime, origin/PLAT-4232-mergetime)
Author: Andy Goldschmidt 
Date:   Wed Apr 17 11:24:09 2024 +0100

commit 1bf704ccba8eaebea0bd44 (tag: v3.5-beta, tag: v3.5, origin/main, origin/HEAD, main)
Merge: 11b9b34 4ed4c80
Author: Monjurul Haque
Date:   Tue Jan 16 12:14:26 2024 +0000

$ git log --format=%cd --date=format:'%Y-%m-%d %H:%M:%S' 2024-04-17 11:24:09 <- this is actually in BST 2024-01-16 12:14:26 <- this is actually in UTC 2024-01-12 14:24:56 <- this is actually in UTC

$ TZ=UTC0 git log --format=%cd --date=format-local:'%Y-%m-%d %H:%M:%S' 2024-04-17 10:24:09 <- this is actually in UTC 2024-01-16 12:14:26 <- this is actually in UTC 2024-01-12 14:24:56 <- this is actually in UTC