The lack of information on valid commands for the aeroo reports' template directives led to a lot of blind searching. On the developer wiki there is a mention of temporary functions that are supported in the module:
Time related functions
dec_to_time - converts time to hh: min representation;
time - time access and conversions;
Among the temporary functions there is a command that in theory should solve my problem - tzset () , but I could not use it because the template did not accept the attempt to set the time zone. It is quite possible that I was doing something wrong, but I decided to find another way to solve the problem.
Here he is. The method is terrible, but until I think of anything better, it will come down.
I split the datetime into three parts:
time.strftime("%d.%m.%Y", time.strptime(str(o.visitdt), "%Y-%m-%d %H:%M:%S"))
this is a date , everything is fine
(time.strptime(str(o.visitdt), "%Y-%m-%d %H:%M:%S"))[3]+07
This clock is increased by 7 (my time zone)
time.strftime("%M", time.strptime(str(o.visitdt), "%Y-%m-%d %H:%M:%S"))
the last part is minutes (no change).
As a result, we get exactly what we wanted (10/19/2017 11:00 for example).
Obviously, the system will fail if the original time is less than 7 am, but since the earliest time that can be available for recording is 8 am, the workaround will be fine.