diff --git a/Koha/Template/Plugin/KohaDates.pm b/Koha/Template/Plugin/KohaDates.pm
index e87d478adc..042268fc97 100644
--- a/Koha/Template/Plugin/KohaDates.pm
+++ b/Koha/Template/Plugin/KohaDates.pm
@@ -23,6 +23,7 @@ use Template::Plugin::Filter;
use base qw( Template::Plugin::Filter );
use Koha::DateUtils;
+use C4::Context;
our $DYNAMIC = 1;
sub filter {
@@ -42,4 +43,8 @@ sub output_preference {
return output_pref( @params );
}
+sub tz {
+ return C4::Context->tz->name;
+}
+
1;
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc
new file mode 100644
index 0000000000..91a770a5a6
--- /dev/null
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc
@@ -0,0 +1,62 @@
+[% USE Koha %]
+[% USE raw %]
+[% USE Asset %]
+[% USE KohaDates %]
+[% Asset.js("lib/moment/moment.min.js") | $raw %]
+[% Asset.js("lib/moment/moment-timezone-with-data-10-year-range.min.js") | $raw %]
+
\ No newline at end of file
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc
new file mode 100644
index 0000000000..9381684bc6
--- /dev/null
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc
@@ -0,0 +1,62 @@
+[% USE Koha %]
+[% USE raw %]
+[% USE Asset %]
+[% USE KohaDates %]
+[% Asset.js("lib/moment.min.js") | $raw %]
+[% Asset.js("lib/moment-timezone-with-data-10-year-range.min.js") | $raw %]
+
\ No newline at end of file