We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 989bc9c + 1b2b5f5 commit 05e8f73Copy full SHA for 05e8f73
src/Services/CalendarEvents/Util.vala
@@ -91,10 +91,9 @@
91
* Say if an event lasts all day.
92
*/
93
public bool is_the_all_day (GLib.DateTime dtstart, GLib.DateTime dtend) {
94
- var utc_start = dtstart.to_timezone (new TimeZone.utc ());
95
var timespan = dtend.difference (dtstart);
96
97
- if (timespan % GLib.TimeSpan.DAY == 0 && utc_start.get_hour () == 0) {
+ if (timespan % GLib.TimeSpan.DAY == 0 && dtstart.get_hour () == 0) {
98
return true;
99
} else {
100
return false;
0 commit comments