FEATURE: Switch to 24 hour format cause AM/PM is confusing

FEATURE: Switch to 24 hour format cause AM/PM is confusing
From 87d6db3357cce6b465b20b53ad6b73535129c398 Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Thu, 6 Dec 2018 17:48:02 +1100
Subject: [PATCH] FEATURE: Switch to 24 hour format cause AM/PM is confusing


diff --git a/app/jobs/concerns/alert_post_mixin.rb b/app/jobs/concerns/alert_post_mixin.rb
index 8bb25fa..0c19e21 100644
--- a/app/jobs/concerns/alert_post_mixin.rb
+++ b/app/jobs/concerns/alert_post_mixin.rb
@@ -87,7 +87,7 @@ module AlertPostMixin
     parsed = Time.zone.parse(time)
 
     date = <<~DATE
-    [date=#{parsed.strftime("%Y-%m-%d")} time=#{parsed.strftime("%H:%M:%S")} format="L LTS" displayedTimezone="UTC" timezones="Europe/Paris\\|America/Los_Angeles\\|Asia/Singapore\\|Australia/Sydney"]
+    [date=#{parsed.strftime("%Y-%m-%d")} time=#{parsed.strftime("%H:%M:%S")} format="L HH:mm:ss" displayedTimezone="UTC" timezones="Europe/Paris\\|America/Los_Angeles\\|Asia/Singapore\\|Australia/Sydney"]
     DATE
 
     date.chomp!

GitHub

3 Likes