billysometimes / rethinkdb

dart driver for rethinkDB
MIT License
37 stars 19 forks source link

DateTime support #35

Closed fschuetz04 closed 9 years ago

fschuetz04 commented 9 years ago

When I try something like

await r.table('sessions').insert({'issuedAt': new DateTime.now()}).run(connection);

it throws a RqlRuntimeError with the message Timezone 1 does not start with - or +. Should I use timestamps instead?

billysometimes commented 9 years ago

Thanks for filing the bug!

It looks like there is a bug if the timeline is ahead of gmt. I'll fix it today or tomorrow, in the meantime you could use r.epochtime and pass it a timestamp

fschuetz04 commented 9 years ago

Ok thanks I'll try that :+1: