From bb7eda036d2dfd65b1c43f378fcb3fdfd4916c2e Mon Sep 17 00:00:00 2001 From: Manager Bot Date: Fri, 25 Nov 2022 19:58:32 +0000 Subject: [PATCH] Fix timezone. --- Web/lib/MJB/Web/Controller/Dashboard.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Web/lib/MJB/Web/Controller/Dashboard.pm b/Web/lib/MJB/Web/Controller/Dashboard.pm index 4aa25e4..843e8e2 100644 --- a/Web/lib/MJB/Web/Controller/Dashboard.pm +++ b/Web/lib/MJB/Web/Controller/Dashboard.pm @@ -41,7 +41,8 @@ sub blog_posts ( $c ) { # This route loads the editor for making a new blog post. #== sub blog_post ( $c ) { - $c->stash->{form}->{date} = DateTime->now->strftime( "%F %H:%M" ); + # Set the date to now for new posts. + $c->stash->{form}->{date} = DateTime->now(time_zone => 'America/Los_Angeles')->strftime("%F %H:%M"); } #==