signalwerk / calendar

Human editable (.txt) and machine readable (.ics) calendar-lists
https://cal.signalwerk.ch/
2 stars 1 forks source link

Event Time Hours need to be at least 2 decimals #16

Open AlexJenter opened 4 years ago

AlexJenter commented 4 years ago

when the hour place of the time string is not at least 2 decimals long, the time leaks into the Title field and the Title data goes missing

---
title:
  prefix: "idH"
---
17.8.2020, 7:30-8:15, Hello world

is:

idH – 7:30-8:15 📅 17.8.2020 – 17.8.2020

Debug-Infos
{
  "date": {
    "from": {
      "day": 17,
      "month": 8,
      "year": 2020
    },
    "to": {
      "day": 17,
      "month": 8,
      "year": 2020
    }
  },
  "title": "idH – 7:30-8:15",
  "notes": "",
  "location": "Switzerland",
  "url": ""
}

should be:

idH – Hello world 📅 17.8.2020 7:30 – 17.8.2020 8:15

Debug-Infos
{
  "date": {
    "from": {
      "hour": 7,
      "minute": 30,
      "day": 17,
      "month": 8,
      "year": 2020
    },
    "to": {
      "hour": 8,
      "minute": 15,
      "day": 17,
      "month": 8,
      "year": 2020
    }
  },
  "title": "idH – Hello world",
  "notes": "",
  "location": "Switzerland",
  "url": ""
}