Skip to content

Commit 05e8f73

Browse files
authored
Merge pull request #1610 from levifmorais/master
fix: Whole day events displaying as 12:00 AM
2 parents 989bc9c + 1b2b5f5 commit 05e8f73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Services/CalendarEvents/Util.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,9 @@
9191
* Say if an event lasts all day.
9292
*/
9393
public bool is_the_all_day (GLib.DateTime dtstart, GLib.DateTime dtend) {
94-
var utc_start = dtstart.to_timezone (new TimeZone.utc ());
9594
var timespan = dtend.difference (dtstart);
9695

97-
if (timespan % GLib.TimeSpan.DAY == 0 && utc_start.get_hour () == 0) {
96+
if (timespan % GLib.TimeSpan.DAY == 0 && dtstart.get_hour () == 0) {
9897
return true;
9998
} else {
10099
return false;

0 commit comments

Comments
 (0)