task completion check UTC instead of local timezone

Bug #1838355 reported by Dan Kortschak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
evolution (Ubuntu)
New
Undecided
Unassigned

Bug Description

When a task is completed it can be marked as such. The code, correctly, checks to ensure that a task is not being marked as completed before the current time. Howvever, the current time is taken (apparently) from UTC and not from the current local timezone. This means that it is not possible to mark a task as completed in the eastern hemisphere before the UTC offset of the timezone, i.e. we must be after the threshold in UTC.

If I complete a task before 9:30am and attempt to mark it as completed I am met with: "Completed date cannot be in the future".

This appears to be due to an optimisation in cal_comp_util_compare_time_with_today which only compares time (without timezone) if the time is only a date.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: evolution 3.28.5-0ubuntu0.18.04.1
ProcVersionSignature: Ubuntu 4.18.0-25.26~18.04.1-generic 4.18.20
Uname: Linux 4.18.0-25-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Jul 30 09:24:12 2019
InstallationDate: Installed on 2019-05-22 (68 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
SourcePackage: evolution
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dan Kortschak (dan-kortschak) wrote :
Revision history for this message
Dan Kortschak (dan-kortschak) wrote :

We are living in the future!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.