bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

Can't find variable: GenghisDate #135

Closed rtorcato closed 10 years ago

rtorcato commented 11 years ago

get this error when i try to insert document with date: "joinedDate" : Date( 1353168028000 )

bobthecow commented 11 years ago

You should use ISODate instead :)

I'll try to make that error go away though.

rtorcato commented 11 years ago

cool thanks

bobthecow commented 11 years ago

This should be fixed in develop. Do you mind giving it a spin?

I tested it with this document:

{
    a: Date(1378240369000),
    b: new Date(1378240369000),
    c: Date("2013-09-03T13:32:49-07:00"),
    d: new Date("2013-09-03T13:32:49-07:00"),
    e: ISODate("2013-09-03T13:32:49-07:00"),
    f: new ISODate("2013-09-03T13:32:49-07:00")
}

... and all of 'em work now :)

bobthecow commented 10 years ago

I'm assuming that's a yes. Feel free to reopen this issue if it didn't work for you :)

rtorcato commented 10 years ago

sorry yes it was fixed. Thanks