neumino / chateau

Another (awesome) data explorer for RethinkDB
207 stars 38 forks source link

Date Field not Working #38

Closed chrisspiegl closed 11 years ago

chrisspiegl commented 11 years ago

I just tried working with the 'Date' field in RethinkDb and wanted to add some with Chateau but this is what happened:

Error:Invalid time object constructed (invalid timezone string `"+0-2:0"`): { "$reql_type$":    "TIME", "epoch_time":   1378065967, "timezone": "+0-2:0" } in: r.db("PhindaProtoExample").table("Positions").insert(r.json("{"idUser":"6b74eb16-32e0-4a20-8304-9ac237016a37","toDateTime":{"$reql_type$":"TIME","epoch_time":1378065967,"timezone":"+0-2:0"},"fromDateTime":{"$reql_type$":"TIME","epoch_time":1378065964,"timezone":"+0-2:0"},"latitude":-2.109375,"longitude":37.840157}")) 

The text in the Textfield in Chateau is the following:

Sun Sep 01 2013 18:06:07 GMT+0-2:00

Hope this helps in resolving the issue.

neumino commented 11 years ago

Did you write Sun Sep 01 2013 18:06:07 GMT+0-2:00? Or did Chateau write Sun Sep 01 2013 18:06:07 GMT+0-2:00 for you?

neumino commented 11 years ago

Never mind, I found the bug I think. Fix coming, sorry for that. I just started adding tests for Chateau but haven't covered everything yet.

Thanks for reporting this.

chrisspiegl commented 11 years ago

Great works perfectly now.

neumino commented 11 years ago

Thanks, let me know if you run into other bugs!