From 6d9a5dde258e6c79ac3ce933f22cb1e070621b86 Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 10 Apr 2006 15:21:57 +0000 Subject: [PATCH] seconds instead of milliseconds git-svn-id: svn://svn.open-ils.org/ILS/trunk@3629 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/circ/offline_checkin.js | 2 +- .../xul/staff_client/chrome/content/circ/offline_checkout.js | 2 +- .../staff_client/chrome/content/circ/offline_in_house_use.js | 2 +- .../xul/staff_client/chrome/content/circ/offline_register.js | 2 +- Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js index 0ae0c87dd5..d55ec2a872 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js @@ -99,7 +99,7 @@ function append_to_list() { var my = {}; my.type = 'checkin'; - my.timestamp = new Date().getTime(); + my.timestamp = parseInt( new Date().getTime() / 1000); my.backdate = util.date.formatted_date(new Date(),"%F %H:%M:%s"); var i_barcode = $('i_barcode').value; diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js index 7b46365fdc..3474824e65 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js @@ -195,7 +195,7 @@ function append_to_list(checkout_type,count) { var my = {}; my.type = 'checkout'; - my.timestamp = new Date().getTime(); + my.timestamp = parseInt( new Date().getTime() / 1000); my.checkout_time = util.date.formatted_date(new Date(),"%F %H:%M:%s"); var p_barcode = $('p_barcode').value; diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js index 07f11f3e8a..15c1457ef0 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js @@ -104,7 +104,7 @@ function append_to_list() { var my = {}; my.type = 'in_house_use'; - my.timestamp = new Date().getTime(); + my.timestamp = parseInt( new Date().getTime() / 1000); my.use_time = util.date.formatted_date(new Date(),"%F %H:%M:%s"); var i_barcode = $('i_barcode').value; diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_register.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_register.js index ba792f9fb5..5cecbf4a6e 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_register.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_register.js @@ -227,7 +227,7 @@ function check_patron(obj) { function next_patron() { try { var obj = {} - obj.timestamp = new Date().getTime(); + obj.timestamp = parseInt( new Date().getTime() / 1000); obj.type = 'register'; obj.user = {}; obj.user.card = { 'barcode' : $('barcode').value }; diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js index 57a639e0d9..58f661af1b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js @@ -147,7 +147,7 @@ function append_to_list(checkout_type,count) { var my = {}; my.type = 'renew'; - my.timestamp = new Date().getTime(); + my.timestamp = parseInt( new Date().getTime() / 1000); my.checkout_time = util.date.formatted_date(new Date(),"%F %H:%M:%s"); var p_barcode = $('p_barcode').value; -- 2.43.2