Tryton - Issues



Title Add format_datetime to Report
Priority feature Status testing
Superseder Nosy List ced, pokoli, reviewbot, xcodinas
Type feature request Components company, trytond
Assigned To pokoli Keywords easy, review
Reviews 45521002
View: 45521002

Created on 2018-03-08.18:00:27 by ced, last changed by reviewbot.

review45521002 updated at
review45521002 updated at
review45521002 updated at
review45521002 updated at
review45521002 updated at
msg50029 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-06-05.11:27:26
I think the company module should extend the method to set the timezone of the company if not set (like it does for This can be achieved using the Pool.setup_mixin.
review45521002 updated at
New review45521002 at
msg40802 (view) Author: [hidden] (xcodinas) (Tryton committer) Date: 2018-05-21.14:17:31
I've added review45521002 which implements it.
msg38873 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-03-08.18:00:26

User may want to display a datetime on the report but they are always in UTC in trytond so they need to be converted to the right timezone.
So I propose to add a function 'format_datetime' similar to 'format_date' but taking a timezone (name of pytz instance). It will be responsible to convert into timezone and format it (the time format should be a parameter also).
Date User Action Args
2020-07-08 23:40:47reviewbotsetmessages: + msg59094
2020-06-23 15:48:25reviewbotsetmessages: + msg58836
2020-06-10 14:28:06reviewbotsetmessages: + msg58638
2020-06-10 14:14:48pokolisetassignedto: xcodinas -> pokoli
2020-06-10 14:14:44pokolisetstatus: in-progress -> testing
nosy: + pokoli
2019-06-05 18:54:27reviewbotsetmessages: + msg50100
2019-06-05 16:14:05reviewbotsetmessages: + msg50065
2019-06-05 11:27:27cedsetstatus: chatting -> in-progress
component: + company
messages: + msg50029
2019-06-05 11:07:45reviewbotsetmessages: + msg50026
2018-05-21 14:19:40reviewbotsetnosy: + reviewbot
messages: + msg40803

Showing 10 items. Show all history (warning: this could be VERY long)