Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

01/01/1970 Date Issue #399

Open
vs4vijay opened this issue Jul 13, 2016 · 0 comments
Open

01/01/1970 Date Issue #399

vs4vijay opened this issue Jul 13, 2016 · 0 comments

Comments

@vs4vijay
Copy link

Hi,

I am trying to create a document with 1st January 1970 date, It is throwing following error:

NoMethodError: undefined method __bson_dump__' for Thu, 01 Jan 1970:Date
from /home/viz/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/moped-1.5.2/lib/moped/bson/extensions/hash.rb:15:in block in __bson_dump__'

And the statement I am using is this:

Profiles::Lead.last.update_attributes(prescription_date: "01/01/1970")

I am using Ruby version 1.9.3 with Mongoid version 3.1.6. I can not upgrade my ruby version but tried upgrading mongoid version to 4.0.0 and 5.0.0, couldn't upgrade because of some dependencies.

I think the problem is with Epoch time, Is there any solution to this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant