aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/mobile.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/mobile.js')
-rw-r--r--www/js/mobile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js
index 09c9479..53838e4 100644
--- a/www/js/mobile.js
+++ b/www/js/mobile.js
@@ -515,7 +515,7 @@ function get_report_params () {
lon: $('#fixmystreet\\.longitude').val(),
phone: $('#form_phone').val(),
pc: $('#pc').val(),
- time: new Date()
+ time: new Date().getTime()
};
if ( localStorage.username && localStorage.password && localStorage.name ) {
@@ -572,7 +572,7 @@ function display_saved_reports() {
var item = $('<li class="saved-report" id="' + i + '"></li>');
var date;
if ( r[i].time ) {
- var date_o = new Date( r[i].time );
+ var date_o = new Date( parseInt(r[i].time, 10) );
date = date_o.getDate() + '/' + ( date_o.getMonth() + 1 ) + '/' + date_o.getFullYear();
date = date + ' ' + date_o.getHours() + ':' + date_o.getMinutes();
} else {