mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +01:00
include time in the date of a snapshot
(the time may actually be when the snapshot build started)
This commit is contained in:
parent
baddf10194
commit
866fc23f79
@ -155,8 +155,8 @@ getStackageCabalConfigR name = track "Handler.StackageHome.getStackageCabalConfi
|
||||
toBuilder (pliName p) ++
|
||||
constraint p
|
||||
|
||||
yearMonthDay :: FormatTime t => t -> String
|
||||
yearMonthDay = formatTime defaultTimeLocale "%Y-%m-%d"
|
||||
yearMonthDayTime :: FormatTime t => t -> String
|
||||
yearMonthDayTime = formatTime defaultTimeLocale "%Y-%m-%d %H:%M %Z"
|
||||
|
||||
getSnapshotPackagesR :: SnapName -> Handler () -- FIXME move to OldLinks?
|
||||
getSnapshotPackagesR name = track "Handler.StackageHome.getSnapshotPackagesR" $
|
||||
|
||||
@ -3,7 +3,7 @@ $newline never
|
||||
<h1>
|
||||
#{snapshotTitle snapshot}
|
||||
<p>
|
||||
Published on #{yearMonthDay (snapshotCreated snapshot)}
|
||||
Published on #{yearMonthDayTime (snapshotCreated snapshot)}
|
||||
<span .separator>
|
||||
<span>
|
||||
<a href=@{StackageDiffR previousSnapName name}>View changes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user