zenwalk / mapaction-toolbox

Automatically exported from code.google.com/p/mapaction-toolbox
0 stars 0 forks source link

CreateDate tag format issue in the xml #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For the map catlogue createdate tag to work correct the date needs to be shown 
as yyyy-mm-dd NOT dd/mm/yyyy as it is currently showing (or at least it has for 
the Serbia mission). The map catalogue parses the xml date as 0000-00-00 which 
means the latest maps do not show in the correct location and a manual edit has 
to be made.

Original issue reported on code.google.com by matt.si...@googlemail.com on 29 May 2014 at 9:14

GoogleCodeExporter commented 9 years ago
It'll be good to see progress on this, as it affects every map upload on every 
deployment, and the manual edit needed to correct the problem is generally 
missed by SB. Many thanks for work on this.

Original comment by nick...@gmail.com on 19 Jun 2014 at 9:20

GoogleCodeExporter commented 9 years ago
Example from XML file:
    <createdate>18/06/2014</createdate>
Picked up in Joomla as:
    0000-00-00 00:00:00
Displayed on map catalogue as:
    30 November -0001
Edited in Joomla to:
    2014-06-18 00:00:00

Original comment by nick...@gmail.com on 19 Jun 2014 at 9:23

GoogleCodeExporter commented 9 years ago
Fix as per the instructions from those who logged the issue.  Example output 
from my test run just now <createdate>2014-08-12 08:13:59</createdate>.  Needs 
testing in the MapCatalog now, which should be a priority - as already pointed 
out, this is a minor issue but a major annoyance to deployed staff.

Original comment by gv1...@gmail.com on 12 Aug 2014 at 10:50

GoogleCodeExporter commented 9 years ago
Date format is fixed as requested. 
Not sure about the time element of the createdate though. 
The xml now shows
<createdate>2014-08-16 03:29:37</createdate>
<createtime>15:29</createtime>
The createtime is correct but how is the time element of the createdate 
formatted? 
Testing of upload to map catalog still to be completed.

Original comment by ClaireBy...@gmail.com on 16 Aug 2014 at 2:37

GoogleCodeExporter commented 9 years ago
Testing of upload to MapCatalog done, uploaded to here:
http://www.mapaction.org/map-catalogue/mapdetail/3448.html
The date definitely passes correctly. 
There is still some question on time formats being used in various places; 
which one is used to order the map catalog?
-1 <createdate> time element seems to either be 12 hours behind or else is in 
am/pm
-2 <createtime> time element is 24 hour and is correct and unambiguous
-3 there is also a date element showing in the map catalog that has a time 
element that is always 00:00:00 e.g. 2014-08-16 00:00:00 

Original comment by ClaireBy...@gmail.com on 16 Aug 2014 at 3:21

GoogleCodeExporter commented 9 years ago

Original comment by ClaireBy...@gmail.com on 16 Aug 2014 at 4:17