Tryton - Issues

 

Issue7202

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

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

Messages
New review45521002 at https://codereview.tryton.org/45521002/#ps1
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
From http://www.tryton.org/~irclog/2018-03-08.log.html#t16:03-4

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).
History
Date User Action Args
2018-05-21 14:19:40reviewbotsetnosy: + reviewbot
messages: + msg40803
2018-05-21 14:19:39reviewbotsetreviews: 45521002
keyword: + review
2018-05-21 14:17:31xcodinassetstatus: unread -> chatting
assignedto: xcodinas
messages: + msg40802
nosy: + xcodinas
2018-03-08 18:00:27cedcreate

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