Hi,
my goal is to display a datetime in the format hours:minutes in a tree view.
I first tried to format my datetime directly in the XML but without success.
Then, I decided to create a new field in my model :
I defined its value in the following function :
The problem I have is that the string has a difference of one hour with the datetime
For example I have this :
Datetime Test
00:00
0
I think it comes from the timezone but I don't understand how I can include the timezone in the code to obtain the correct string. I could just add an hour to the datetime but I think I will have problems with the time change.