Re: [tryton-dev] Get default datetime value for now in Tryton

2014-03-20 Thread Raimon Esteve
It is not. datetime.now() will return now in UTC which is always now in any timezone. I think is not true. datetime.now() return current local date and time, not UTC (1). Tryton switched for 3.2 to good practice which is to always work/store/manipulate UTC. So adding a Date.now() that

Re: [tryton-dev] Get default datetime value for now in Tryton

2014-03-20 Thread Raimon Esteve
2014-03-20 8:55 GMT+01:00 Raimon Esteve rest...@zikzakmedia.com: It is not. datetime.now() will return now in UTC which is always now in any timezone. I think is not true. datetime.now() return current local date and time, not UTC (1). trytond force UTC. Ok, datetime.now() return UTC in

Re: [tryton-dev] Get default datetime value for now in Tryton

2014-03-19 Thread Raimon Esteve
I El 19/03/2014 20:29, Jordi Esteve jest...@zikzakmedia.com va escriure: There is a way to get the default datetime value for now in Tryton? To get a default date for today there is today() method in Date class. It is overwritten in company module to take into account the timezone of the

Re: [tryton-dev] Get default datetime value for now in Tryton

2014-03-19 Thread Cédric Krier
On 19 Mar 21:09, Raimon Esteve wrote: I El 19/03/2014 20:29, Jordi Esteve jest...@zikzakmedia.com va escriure: There is a way to get the default datetime value for now in Tryton? To get a default date for today there is today() method in Date class. It is overwritten in company module