Change ID: |
50 |
Type: |
Bug |
Title: |
date strings not detected in tablesort script |
Status: |
New |
Severity: |
Trivial (e.g. Display Text) |
Version: |
Round 35 - Game |
|
Assigned To: Unassigned
[Add Response] | [Subscribe]
Planetarion Support Team Member
Will
|
28 Jan 2011 10:41 |
in ie8, any date string such as "Fri 28 Jan 01:14:19" is not detected as a date by this statement in jq_0.1.js:
if(!isNaN(Date.parse(a))){return"date"}
maybe this also affects older ie, i have no way to test. firefox (4beta10 at least) has no problem detecting those dates. |
|
Planetarion Support Team MemberWill |
29 Jan 2011 08:04 |
it seems i was hallucinating firefox sorting properly, it doesn't (with or without the comma that mysteriously appeared, i hope i didn't hallucinate that too) 
a lazy "fix" might be something like this:
if(!isNaN(Date.parse(a+" 2011"))){return"date"}
|
|
[Add Response] | [Subscribe]
|