aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-08 11:02:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-08 11:02:14 +1300
commitf7b489fdbf79a4dbeb6d52c1e6e53fefc938f98e (patch)
tree304f32bbc37381ecdd9013442efa1641789f85bf /web
parent511f22dd7ab31e5da8741264dbf19a9fe8b05b63 (diff)
downloadtrackermap-server-f7b489fdbf79a4dbeb6d52c1e6e53fefc938f98e.tar.gz
trackermap-server-f7b489fdbf79a4dbeb6d52c1e6e53fefc938f98e.tar.bz2
trackermap-server-f7b489fdbf79a4dbeb6d52c1e6e53fefc938f98e.zip
Fix date format issue on IE (fix #1766)
Diffstat (limited to 'web')
-rw-r--r--web/app/model/Device.js2
-rw-r--r--web/app/model/Position.js9
2 files changed, 7 insertions, 4 deletions
diff --git a/web/app/model/Device.js b/web/app/model/Device.js
index b8434d6ad..709d51953 100644
--- a/web/app/model/Device.js
+++ b/web/app/model/Device.js
@@ -33,6 +33,6 @@ Ext.define('Traccar.model.Device', {
}, {
name: 'lastUpdate',
type: 'date',
- dateWriteFormat: 'c'
+ dateFormat: 'c'
}]
});
diff --git a/web/app/model/Position.js b/web/app/model/Position.js
index 365b06115..e559a7eab 100644
--- a/web/app/model/Position.js
+++ b/web/app/model/Position.js
@@ -29,13 +29,16 @@ Ext.define('Traccar.model.Position', {
type: 'int'
}, {
name: 'serverTime',
- type: 'date'
+ type: 'date',
+ dateFormat: 'c'
}, {
name: 'deviceTime',
- type: 'date'
+ type: 'date',
+ dateFormat: 'c'
}, {
name: 'fixTime',
- type: 'date'
+ type: 'date',
+ dateFormat: 'c'
}, {
name: 'valid',
type: 'boolean'