joola / joola.sdk

Joola's Software Development Kit (SDK)
https://joo.la
Other
3 stars 3 forks source link

Allow additional timestamp fields other than `timestamp` #157

Open orweinberger opened 9 years ago

orweinberger commented 9 years ago

Currently, it's not possible to push another valid timestamp date into Joola, this is probably due to some specific date handling Joola does on the timestamp field, but not on other time stamped fields.

For example, here's how the timestamp field looks like after it's been pushed to mongo:

"timestamp" : ISODate("2010-04-21T15:10:14Z"),

And here's another timestamp field that was pushed as new Date().toISOString():

"test_timestamp" : "2010-04-21T15:10:14Z",