Posts

Showing posts from 2012

Localised Date & Time in Javascript

I want to display a date & time string that's formatted correctly depending on the viewer's locale. Question: can I rely on the javascript Date object's locale-specific string functions ? Answer: yes, but only if I don't care what it looks like or how many characters are in the string. Here's the result of my testing: toLocaleString() FF15:     "Tue Jul 14 14:37:05 2009" Chrome21: "Tue Jul 14 2009 14:37:05 GMT+1200 (NZST)" Safari6:   "14 July 2009 2:37:05 PM NZST" IE10:   "Tuesday, 14 July 2009 2:37:05 p.m." toLocalDateString() + ' ' + toLocaleTimeString() FF15:     "07/14/2009 14:37:05" Chrome21:   "Tuesday, July 14, 2009 14:37:05" Safari6: "14 July 2009 2:37:05 PM NZST" IE10 "Tuesday, 14 July 2009 2:37:05 p.m." Could they be any more different ?

Canon dissing Mac users

Dear Canon - Fuck you, could you possibly be more inept ? Not only have you failed to supply OS X Lion drivers for my Canon printer (CP400), or in fact ANY printer from that range (the otherwise awesome dye sublimation range of printers) - but your webpage "Mac OS X Lion Compatibility List", provided explicitly for Mac users, DOESN'T FUCKING WORK IN SAFARI. Honestly, could you care any less about Mac users? So, here's my promise; I will no longer buy Canon print products until there's at least a hint of caring a damn. When was Lion release ... was it about 10 months ago now ... and you would have had dev builds months before that ... so, do you have more than just the one Mac developer ?