Morning Discussion

by Alice O'Connor, Jul 15, 2009 7:00am PDT

I blame the baseball cap. The baseball cap is responsible for the decline of civilisation as we know it. Can you imagine a young hooligan wearing a bowler hat tipping over your bins, yelling at your nan and throwing a brick through your window? Of course not!

No, this young bowler-hatted ruffian would attempt to pick your pocket in an inept manner, then throw his hands up and say "It's a fair cop!" when caught. Carted off to an orphanage, he would of course flee following an incident sparked by complaints over the size of meal portions, but ultimately would end up living with a middle-class family, enjoying big dinners every night. And would never so much as consider torching your granddad's shed housing his collection of antique taxidermied badgers.

Thank you very much, baseball caps.

  • and json assistance. So another developer had code to convert from a date to json, except there is one problem. The date javascript displays is always 1 day previous to what was specified. So if you put in 07/15/2009 it's saved fine but when javascript reads the date it's coming up as 07/14/2009.

    I was able to track it down to I think the date is in utc format. I need this fixed and am not entirely sure how. This software will be used both here in the US and in India so it has to work right. Here is some dummy code for example

    Dim Blarg As New Date(2009, 7, 15)
    Dim Awesome As String = (Blarg - New Date(1970, 1, 1)).TotalMilliseconds.ToString("0")