jbroadway / analog

PHP logging library that is highly extendable and simple to use.
MIT License
342 stars 48 forks source link

question: is it on purpose that the date is inserted as a string in MongoDB? #21

Closed tessus closed 9 years ago

tessus commented 9 years ago

I'm just wondering if it is on purpose that the date is inserted into a MongoDB collection as a string instead of a date field.

jbroadway commented 9 years ago

Just that the Mongo handler is fairly rudimentary. I'm open to improvements though! :)

tessus commented 9 years ago

Ok, I was just curious. But I did some digging and found out that the Mongo date field does not include a timezone. Thus it probably makes sense for a logger to use a string instead. (Otherwise I would have changed it and sent you a pull request.)