2010/11/25 Dave Rolsky <auta...@urth.org> > On Thu, 25 Nov 2010, pp wrote: > > There is DefaultLocale in DateTime so I've thought that >> that door is already opened. >> > > I was young and stupid when I added this. Now I know better. > > > or maybe the idea of DateTime object having a formatter is wrong.
more strictly - one formatter is not enough. usually i need one parser/formatter set for retriving/saving datetime into database and another parser/formatter for retrieving/displayind DateTime from/to user. so, formatter and stringification should be removed from DateTime, and DateTime object should be passed to formatter/parser. dbix is passing DateTime object to formatters, when storing/retrieving data into/from database. DefaultFormatter would make life easier when presenting date to user. it allready has defaultformatter that's all. -- pp