doctrine / couchdb-odm

A Document Mapper based on CouchDB

Home Page:http://www.doctrine-project.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Format of DateTime types

danielkbx opened this issue · comments

When a datetime type is stored in couch, a conversion is made. The used format "Y-m-d H:i:s.u" is both adverse and hard coded.

First, it should be adjustable without changing Doctrine code. Second, why not take a format which is parseable by Spidermonkey like "r" as default?

Okay, I've been too fast. I can, of course, implement my own conversion class and use a format which fits better.
Stupid me.