Termine: alle anstehenden auf Startseite + Bearbeiten; Status Telefonat
- Startseite zeigt alle anstehenden Termine (vorher auf 6 begrenzt) - Termine lassen sich inline bearbeiten (CalDAV-Update, Neu-Anlage bei 404/412) - Neuer Bewerbungsstatus Telefonat (Listen, Farben, API, PDF, Statistik) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -76,6 +76,16 @@ function localInputToUtc(dateStr, timeStr) {
|
||||
return wallToUtc(y, mo, d, h || 0, mi || 0, TZ);
|
||||
}
|
||||
|
||||
// UTC Date -> Berliner Wanduhr-Bestandteile { datum: 'YYYY-MM-DD', zeit: 'HH:MM' }
|
||||
// (für vorausgefüllte Bearbeiten-Formulare).
|
||||
function utcToWallInputs(date) {
|
||||
const p = new Intl.DateTimeFormat('en-CA', {
|
||||
timeZone: TZ, year: 'numeric', month: '2-digit', day: '2-digit',
|
||||
hour: '2-digit', minute: '2-digit', hour12: false,
|
||||
}).formatToParts(date).reduce((a, x) => (a[x.type] = x.value, a), {});
|
||||
return { datum: `${p.year}-${p.month}-${p.day}`, zeit: `${p.hour}:${p.minute}` };
|
||||
}
|
||||
|
||||
// UTC Date -> iCalendar UTC stamp "YYYYMMDDTHHMMSSZ".
|
||||
function toIcsUtc(date) {
|
||||
return date.getUTCFullYear() + pad(date.getUTCMonth() + 1) + pad(date.getUTCDate())
|
||||
@@ -335,6 +345,7 @@ module.exports = {
|
||||
collectionUrl,
|
||||
wallToUtc,
|
||||
localInputToUtc,
|
||||
utcToWallInputs,
|
||||
buildICS,
|
||||
parseVEvent,
|
||||
getCtag,
|
||||
|
||||
Reference in New Issue
Block a user