From 40d61ac1c9c59a613ea1ef0ede35b1033f2e5830 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 30 Oct 2023 20:10:30 -0400 Subject: localtime dates show --- app/views/wittle/puzzles/about.html.haml | 2 +- app/views/wittle/puzzles/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/views/wittle/puzzles/about.html.haml b/app/views/wittle/puzzles/about.html.haml index a96fcf9..dcc3132 100644 --- a/app/views/wittle/puzzles/about.html.haml +++ b/app/views/wittle/puzzles/about.html.haml @@ -1,5 +1,5 @@ %p.summary Wittle gives you daily randomly-generated puzzles in the style of those from the 2016 indie game, The Witness. There are three difficulties of puzzles to choose from: -%h2#current-date= @normal_puzzle.created_at.strftime("%B %-d, %Y") +%h2#current-date= @normal_puzzle.created_at.localtime.strftime("%B %-d, %Y") %nav#choose-difficulty #normal-link = link_to "Normal", @normal_puzzle diff --git a/app/views/wittle/puzzles/show.html.haml b/app/views/wittle/puzzles/show.html.haml index 7307152..679046d 100644 --- a/app/views/wittle/puzzles/show.html.haml +++ b/app/views/wittle/puzzles/show.html.haml @@ -1,6 +1,6 @@ .breadcrumb= link_to "← Back to home page", root_path %h1 Wittle ##{@puzzle.id} -.puzzle-description #{@puzzle.category.capitalize} - #{@puzzle.created_at.strftime("%B %-d, %Y")} +.puzzle-description #{@puzzle.category.capitalize} - #{@puzzle.created_at.localtime.strftime("%B %-d, %Y")} #puzzle-container{ style: "display: flex; justify-content: center; align-items: center" } %svg#puzzle{ style: "pointer-events: auto"} #submission-form -- cgit 1.4.1