Should Date.today() in account.invoice use company timezone?

18 views
Skip to first unread message

Vincent Bastos

unread,
May 12, 2017, 12:40:37 AM5/12/17
to tryton-dev
Hi,

I am curious as to why the module account.invoice does not use the timezone variable from company if it has been set when calling Date.today()?

It just seems like it is not unlikely that a user could for example want to make payments, but might not pull all the payments because they  might be in a timezone different enough to impact the date.

I guess this just has not happened yet, but perhaps I'm thinking about it because I'm 10 hours in front of UTC.... :)

Vincent Bastos


Cédric Krier

unread,
May 12, 2017, 3:15:05 AM5/12/17
to tryton-dev
On 2017-05-11 21:40, Vincent Bastos wrote:
> Hi,
>
> I am curious as to why the module account.invoice does not use the timezone
> variable from company if it has been set when calling Date.today()?

It does http://hg.tryton.org/modules/company/file/5b8a0005ebf9/company.py#l314

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Vincent Bastos

unread,
May 12, 2017, 8:25:12 PM5/12/17
to tryto...@googlegroups.com
On Fri, May 12, 2017 at 5:10 PM, Cédric Krier <cedric...@b2ck.com> wrote:
On 2017-05-11 21:40, Vincent Bastos wrote:
> Hi,
>
> I am curious as to why the module account.invoice does not use the timezone
> variable from company if it has been set when calling Date.today()?

It does http://hg.tryton.org/modules/company/file/5b8a0005ebf9/company.py#l314

I knew it! :) 



--
Vincent Bastos
Lava Lab Software
Reply all
Reply to author
Forward
0 new messages