bobthecow / genghis

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

ISODate issue - "Invalid time value" #146

Open aaronup opened 10 years ago

aaronup commented 10 years ago

We have a fresh install of OSX Lion and fresh clean install of gems to support genghisapp. The versions match my other computer to the letter, yet when you view the documents the ISODate format is different. When you attempt to edit said document on the fresh install it complains about "Invalid time value". Even when you haven't attempted to modify that attribute. Note: we can recreate this on every new OSX instance even Mavericks

Working Server Entry Working Document Field

Non-Working Server Entry Non-working Document Field

Here's the output of all the gems and versions. which ruby, gem, gem which genshis as well

$ gem list
backports (3.3.3)
bson (1.9.0)
bson_ext (1.9.0)
eventmachine (1.0.3)
genghisapp (2.3.8)
json (1.8.0)
mongo (1.9.0)
mustache (0.99.4)
rack (1.5.2)
rack-protection (1.5.0)
rack-test (0.6.2)
rubygems-update (2.1.10)
sinatra (1.4.3)
sinatra-contrib (1.4.0)
sinatra-mustache (0.1.0)
tilt (1.4.1)
vegas (0.1.11)

$ gem which genghis
/Library/Ruby/Gems/1.8/gems/genghisapp-2.3.8/./genghis.rb

$ which gem
/usr/bin/gem

$ which ruby
/usr/bin/ruby

$ ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]
bobthecow commented 10 years ago

Just for fun, do you mind running this version standalone:

https://raw.github.com/bobthecow/genghis/feature/three-dot-oh-my/genghis.rb

aaronup commented 10 years ago

Hi There,

No luck with the standalone, still has the improper format for the ISODates

A

bobthecow commented 10 years ago

Okay. Thanks for checking. I'll try to take a look this weekend and see if I can reproduce.