Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

googleCalendar feature: Display only start time for events with zero duration #963

Open
ghost opened this issue Dec 1, 2023 · 0 comments
Labels
feature request Feature Request

Comments

@ghost
Copy link

ghost commented Dec 1, 2023

Desklet name and maintainer

[email protected] @slgobinath

What would you like to see?

Currently the desklet shows e.g.

Take out trash 6:00 PM – 6:00 PM

for events with zero duration. To reduce visual clutter change this to

Take out trash 6:00 PM

The required change to utility.js is simple:

128c128,132
<             return this.formatTime(this.startTime) + " - " + this.formatTime(this.endTime);
---
> 	    if (this.startTime === this.endTime) {
> 		return this.formatTime(this.startTime);
> 	    } else {		
> 		return this.formatTime(this.startTime) + " - " + this.formatTime(this.endTime);
> 	    }
@ghost ghost added the feature request Feature Request label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature Request
Projects
None yet
Development

No branches or pull requests

0 participants