Skip to content

Commit c465ada

Browse files
committed
FIx Shows local time instead of UTC and remove parenthesis
1 parent 02059bc commit c465ada

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/views/dailyFeed.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ object dailyFeed:
4343
ups.view
4444
.filter(_.published || editor)
4545
.map: update =>
46-
val exactDateTime = java.time.format.DateTimeFormatter.ofPattern("dd MMM yyyy, HH:mm").format(java.time.LocalDateTime.ofInstant(update.at, java.time.ZoneOffset.UTC))
4746
div(cls := "daily-feed__update", id := update.id)(
4847
marker(update.flair),
4948
div(cls := "daily-feed__update__content")(
5049
st.section(cls := "daily-feed__update__day")(
51-
h2(a(href := s"#${update.id}")(raw(exactDateTime),raw(" UTC ("),span(momentFromNow(update.at)),raw(")"))),
50+
h2(a(href := s"#${update.id}")(showEnglishInstant(update.at))),
5251
editor option frag(
5352
a(
5453
href := routes.DailyFeed.edit(update.id),

0 commit comments

Comments
 (0)