Skip to content

Commit

Permalink
Forgot the fix in d4aef0e.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Jan 10, 2025
1 parent 6fc9684 commit 58fb44f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Futhark/Pkg/Info.hs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ revInfo gitdir path ref = do
gitCmd_ ["-C", gitdir, "rev-parse", ref, "--"]
[sha] <- gitCmdLines ["-C", gitdir, "rev-list", "-n1", ref]
[time] <- gitCmdLines ["-C", gitdir, "show", "-s", "--format=%cI", ref]
utc <- zonedTimeToUTC <$> iso8601ParseM (T.unpack time)
utc <-
-- Git sometimes produces timestamps with Z time zone, which are
-- not valid ZonedTimes.
if 'Z' `T.elem` time
then iso8601ParseM (T.unpack time)
else zonedTimeToUTC <$> iso8601ParseM (T.unpack time)
gm <- memoiseGetManifest getManifest'
pure $
PkgRevInfo
Expand Down

0 comments on commit 58fb44f

Please sign in to comment.