Timeline disappeared - conversion issue from tm to mrptime with timezone
Hi there,
Some time ago I lost the dashed current time line in the gantt view, which was pretty annoying.
I digged a little into the source code and I found out that the function mrp_time_from_tm
(libplanner/mrp-time.c
, called from gantt_background_init
in src/planner-gantt-background.c
) returns -1
when trying to convert the current time tm
struct into an mrptime
. I removed the code dealing with the UTC timezone, such that the function only performs a mktime
from the tm
struct, and I got it working properly and I got the timeline back.
My timezone is UTC+2 and the call to localtime
in mrp_time_current_time
returns the correct time for me. I am running Fedora 30 with Gnome 3.32.2. Am I the only one facing this issue and should I provide a merge request ?