diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-13 14:35:12 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-13 14:35:12 +1300 |
commit | c9d9ef9f2fef278455b37e64f83b8e0851c908d0 (patch) | |
tree | 35bd791f8e04c68f5c335ac2f43197e3b75e239a /web/app | |
parent | 4f0516ae38d38162563ad6b902b8deac041b309c (diff) | |
download | traccar-server-c9d9ef9f2fef278455b37e64f83b8e0851c908d0.tar.gz traccar-server-c9d9ef9f2fef278455b37e64f83b8e0851c908d0.tar.bz2 traccar-server-c9d9ef9f2fef278455b37e64f83b8e0851c908d0.zip |
Use international date format for pickers
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/Style.js | 1 | ||||
-rw-r--r-- | web/app/view/Report.js | 2 |
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', |