Event.get_body() does only print the Diff to Optime if its not 00:00

This commit is contained in:
2025-10-27 20:02:21 +01:00
parent c5c5d872d7
commit d22dbaf971

View File

@@ -220,7 +220,7 @@ export class Event implements TEventEntity {
const body = [ const body = [
`Title: ${this.title}`, `Title: ${this.title}`,
`Date: ${this.date_at}`, `Date: ${this.date_at}`,
`Time: ${this.get_time_start()}${ TimeDiff ? ` (Optime ${TimeDiff})` : "" }`, `Time: ${this.get_time_start()}${ TimeDiff && TimeDiff == "00:00" ? ` (Optime ${TimeDiff})` : "" }`,
`Type: ${ TEventType[ this.event_type ] }`, `Type: ${ TEventType[ this.event_type ] }`,
`Location: ${this.location}`, `Location: ${this.location}`,
`By: ${this.posted_by}`, `By: ${this.posted_by}`,