Project

General

Profile

Python api timezone setting

Added by Tiephen Morere over 3 years ago

Hello,

I have problem using redmine python api. For example when I use "issue.created_on" to get ticket creation date, I obtain the date less 2 hours.
With python api :

 start_date for ticket 40548 = 2020-09-25 06:09:17

In mysql database,
 create_on for this ticket is 2020-09-25 08:09:17.

Timezone are same on machine where redmine is running, on mysql, on machine where i run script using python api.

My question : is it possible to be consistent with python API ? Is exist parameter to set timezone in python api ?

Information about my environment :
- Ruby implementation and version = ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]
- Rails version (rails --version) = Rails 5.2.4.2
- Operating system = Red Hat Enterprise Linux Server release 7.8 (Maipo)
- Database used, and its version => 5.5.56-MariaDB - MariaDB Server
- Ruby-aware server used = Webrick

Thank you