GCTour / gctour_orig

Automatically exported from code.google.com/p/gctour
1 stars 1 forks source link

Wenn Datumsformat nicht dd/MM/yyyy ist, entsteht eine Parse Datestring Fehler #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Unexpected literal at position 2, Parse Datestring: '2012/10/24' Orig-Format: 
'dd/MM/yyyy' jqui-Format: 'dd/mm/yy

auch nochmal unter
http://forum.geoclub.de/viewtopic.php?f=117&t=63758&start=30#p1013842

Deine Einstellungen => Datumsformate

HTML:
  <select class="Select" id="ctl00_ContentBody_uxDateTimeFormat" name="ctl00$ContentBody$uxDateTimeFormat">
    <option value="yyyy-MM-dd"> 2012-11-07</option>
    <option value="yyyy/MM/dd"> 2012/11/07</option>
    <option value="MM/dd/yyyy"> 11/07/2012</option>
    <option value="dd/MM/yyyy"> 07/11/2012</option>
    <option value="dd/MMM/yyyy"> 07/Nov/2012</option>
    <option value="MMM/dd/yyyy" selected="selected"> Nov/07/2012</option>
    <option value="dd MMM yy"> 07 Nov 12</option>
</select>

Kleiner Ansatz zum Auslesen des Formats:
  http://www.geocaching.com/account/ManagePreferences.aspx
  console.log(
    $('#ctl00_ContentBody_uxDateTimeFormat :selected').val()
  );

Idee:
    Schritt 1. Datumsformat in Einstellung einbinden
        (var dateformat = ["yyyy-MM-dd", "yyyy/MM/DD", "MM/dd/yyyy", "dd/MM/yyyy", "dd/MMM/yyyy", "MMM/dd/yyyy", "dd MMM yy"];

    Schritt 2. mit Button zum automatischem Suchen in der GC Profilseite.

Problem ist somit erstmal aufgenommen.
Wenn ich Zeit hab werd ich weiter machen, falls nicht jemand anderes schneller 
ist.

Original issue reported on code.google.com by gctour.d...@gmail.com on 7 Nov 2012 at 8:48