Bug 15764: Fix timestamp sent by KOCT
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 9 Feb 2016 10:16:55 +0000 (11:16 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 23 Feb 2016 20:53:18 +0000 (20:53 +0000)
commit0987165d6aab0951259b2101c2133ae4c221357b
treeebda87e7076c0588275d9e5f2e11f7de9318b7f8
parent385380038bbeb5d329dcba7eebacf0287d0d816e
Bug 15764: Fix timestamp sent by KOCT

KOCT plugin send UTC timestamp, it should be converted to local timezone

Test plan:
1. Install latest version of KOCT and configure it
   https://addons.mozilla.org/fr/firefox/addon/koct/
   https://wiki.koha-community.org/wiki/Offline_circulation_firefox_plugin
2. Use it to do a checkout and a checkin. See that timestamps are UTC.
3. Click on "Commit to Koha" under "Log" tab
4. Wait for all operations to be processed
5. In Koha, go to Circulation > Offline circulation and check the
   timestamps were correctly converted to the Koha server's timezone
6. Process the pending operations and see that timestamps are still
   correct
7. Repeat step 2
8. Now click on "Apply directly"
9. Check the timestamps are correct in Koha

NOTE: I could not get "Commit to Koha" to work for me, but I did
      confirm this corrected behaviour with "Apply directly".

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Using the "commit to Koha" option works fine for me.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This patch only affects service.pl, which is not used in any way by the
uploader for desktop client files. No changes to the desktop offline
circ will be needed.

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
offline_circ/service.pl