Working in Chrome but not on Android
screen showEntry(e : JSON) {
var dato = DateTime.parse(e.date)
header(““+dato.getDate()+”/”+dato.getMonth()+“/”+dato.getFullYear()) {
}On Android the header becomes NaN/NaN/NaN
Submitted by Terje Pedersen on 7 June 2011 at 13:12
Issue Log
On 8 June 2011 at 09:34 Terje Pedersen commented:
Its the DateTime.parse which fails for 2011-06-07T20:15:44Z input, I think I have to do something else with it.
On 8 June 2011 at 09:49 Terje Pedersen commented:
Used this instead:
external sync function parseDate(date : String) : DateTime
__ns.parseDate = function(date) {
var pat = /\d+/g;
var m = date.match(pat);return new Date(m[0],m[1],m[2],m[3],m[4],m[5]);
};
Other simpler solutions?
Log in to post comments