Fix timezone.

master
Manager Bot 3 years ago
parent df11ba9f8f
commit bb7eda036d
  1. 3
      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");
}
#==

Loading…
Cancel
Save