aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-13 14:35:12 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-13 14:35:12 +1300
commitc9d9ef9f2fef278455b37e64f83b8e0851c908d0 (patch)
tree35bd791f8e04c68f5c335ac2f43197e3b75e239a /web
parent4f0516ae38d38162563ad6b902b8deac041b309c (diff)
downloadtraccar-server-c9d9ef9f2fef278455b37e64f83b8e0851c908d0.tar.gz
traccar-server-c9d9ef9f2fef278455b37e64f83b8e0851c908d0.tar.bz2
traccar-server-c9d9ef9f2fef278455b37e64f83b8e0851c908d0.zip
Use international date format for pickers
Diffstat (limited to 'web')
-rw-r--r--web/app/Style.js1
-rw-r--r--web/app/view/Report.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/web/app/Style.js b/web/app/Style.js
index 7fedfc7a7..58ab059ad 100644
--- a/web/app/Style.js
+++ b/web/app/Style.js
@@ -24,6 +24,7 @@ Ext.define('Traccar.Style', {
dateTimeFormat: 'Y-m-d H:i:s',
timeFormat: 'H:i',
+ dateFormat: 'Y-m-d',
weekStartDay: 1,
deviceWidth: 350,
diff --git a/web/app/view/Report.js b/web/app/view/Report.js
index 65a151c4d..91ccba917 100644
--- a/web/app/view/Report.js
+++ b/web/app/view/Report.js
@@ -45,6 +45,7 @@ Ext.define('Traccar.view.Report', {
xtype: 'datefield',
reference: 'fromDateField',
startDay: Traccar.Style.weekStartDay,
+ format: Traccar.Style.dateFormat,
value: new Date(new Date().getTime() - 30 * 60 * 1000)
}, {
xtype: 'timefield',
@@ -59,6 +60,7 @@ Ext.define('Traccar.view.Report', {
xtype: 'datefield',
reference: 'toDateField',
startDay: Traccar.Style.weekStartDay,
+ format: Traccar.Style.dateFormat,
value: new Date()
}, {
xtype: 'timefield',