Skip to content

eventsNow is listing additional entries (ignoring timezones?) #35

@jjhidalgar-celonis

Description

@jjhidalgar-celonis

Here is an example:

Now: Thu Jul 3 10:21:24 CEST 2025 (Madrid)

[
  {
    "account": "Google",
    "type": "CalDAV",
    "color": "#9FE1E7FF",
    "calendar": "REDACTED",
    "subcal_url": null,
    "symbolic_color_name": "custom",
    "end_date": 773224200,
    "orig_date": 773222400,
    "start_date": 773222400,
    "duration": 1800,
    "all_day": 0,
    "availability": 0,
    "conference_url_detected": null,
    "notes": "REDACTED",
    "has_recurrences": 0,
    "invitation_status": 0,
    "orig_item_id": 2198,
    "ROWID": 2401,
    "start_tz": "Europe/Madrid",
    "status": 1,
    "title": "ONGOING EVENT ",
    "unique_identifier": "REDACTED",
    "url": null,
    "UUID": "REDACTED",
    "xdate": [
      null
    ],
    "attendees": [
      "REDACTED"
    ],
    "address": null,
    "location": null,
    "count": null,
    "rend_date": null,
    "frequency": null,
    "interval": null,
    "specifier": null,
    "trigger_interval": -600,
    "eseconds": 1751531400,
    "ectime": "2025-07-03 10:30:00 +0200",
    "edate": "today",
    "oseconds": 1751529600,
    "octime": "2025-07-03 10:00:00 +0200",
    "odate": "today",
    "sseconds": 1751529600,
    "sctime": "2025-07-03 10:00:00 +0200",
    "sdate": "today"
  },
  {
    "account": "Google",
    "type": "CalDAV",
    "color": "#9FE1E7FF",
    "calendar": "REDACTED",
    "subcal_url": null,
    "symbolic_color_name": "custom",
    "end_date": 773245800,
    "orig_date": null,
    "start_date": 773244000,
    "duration": 1800,
    "all_day": 0,
    "availability": 0,
    "conference_url_detected": null,
    "notes": "REDACTED",
    "has_recurrences": 1,
    "invitation_status": 0,
    "orig_item_id": 0,
    "ROWID": 2057,
    "start_tz": "America/New_York",
    "status": 1,
    "title": "NOT NOW EVENT",
    "unique_identifier": "REDACTED",
    "url": null,
    "UUID": "REDACTED",
    "xdate": [
      null
    ],
    "attendees": [
      "REDACTED"
    ],
    "address": null,
    "location": null,
    "count": 0,
    "rend_date": null,
    "frequency": 2,
    "interval": 2,
    "specifier": "D=0TH",
    "trigger_interval": -600,
    "eseconds": 1751553000,
    "ectime": "2025-07-03 10:30:00 +0000",
    "edate": "today",
    "sseconds": 1751551200,
    "sctime": "2025-07-03 10:00:00 +0000",
    "sdate": "today"
  }
]

Temporary fix

It works great to me, it was generated by AI.

CURRENT_UTC_UNIX_TIMESTAMP=$(date -u +%s)
icalPal -o json -c eventsNow | \
jq --argjson now "$CURRENT_UTC_UNIX_TIMESTAMP" -r '[.[] | select(.sseconds <= $now and .eseconds >= $now)]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions