From 70b597eadde6a7902ef43283130840fb42896013 Mon Sep 17 00:00:00 2001
From: Agustin Moyano <agustinmoyano@theke.io>
Date: Tue, 18 Feb 2020 15:25:03 -0300
Subject: [PATCH] Bug 24455: [DO NOT PUSH] test timezone

This is just a test.. I added the .inc file to adimn's main page

To test:

1. go to Koha main page and open chrome or firefox console
2. type

   $datetime('2020-02-18T12:46:05Z', {tz: 'America/Argentina/Buenos_Aires'})

   and you should get

   "02/18/2020 09:46"

   because America/Argentina/Buenos_Aires is -03:00

3. type

   $datetime('2020-02-18T12:46:05Z', {tz: 'Asia/Shanghai'})

   and you should get

   "02/18/2020 20:46"

   because Asia/Shanghai is +08:00

4. type

   $datetime('2020-02-18T12:46:05Z')

   and it should be translated to your koha instance configured timezone.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
index f6a213523e..aedc11deac 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
@@ -10,6 +10,7 @@
 <body id="main_intranet-main" class="intranet-main">
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'home-search.inc' %]
+[% INCLUDE 'js-date-format.inc' %]
 
 <div id="breadcrumbs">Home</div>
 
-- 
2.20.1