Issue 7202

Title
Add format_datetime to Report
Priority
feature
Status
resolved
Nosy list
ced, pokoli, reviewbot, roundup-bot, xcodinas
Assigned to
pokoli
Keywords
easy, review

Created on 2018-03-08.18:00:27 by ced, last changed 8 months ago by roundup-bot.

Messages

New changeset 6cfd204d16a8 by Sergi Almacellas Abellana in branch 'default':
Add format_datetime to Report
https://hg.tryton.org/tryton-env/rev/6cfd204d16a8
New changeset da4aa730aba2 by Sergi Almacellas Abellana in branch 'default':
Add format_datetime to Report
https://hg.tryton.org/trytond/rev/da4aa730aba2
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 ir.date). This can be achieved using the Pool.setup_mixin.
Author: [hidden] (xcodinas)
Date: 2018-05-21.14:17:31
I've added review45521002 which implements it.
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
2020-10-04 23:04:40roundup-botsetmessages: + msg60563
2020-10-04 23:04:37roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg60562
2020-09-24 23:25:53reviewbotsetmessages: + msg60355
2020-09-24 18:25:15reviewbotsetmessages: + msg60314
2020-09-23 13:51:01reviewbotsetmessages: + msg60290
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

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