v0.11.16 mobile event form fix
This commit is contained in:
@@ -46,7 +46,9 @@ function addHours(iso, h) {
|
||||
const pad = n => String(n).padStart(2,'0');
|
||||
return `${d.getFullYear()}-${pad(d.getMonth()+1)}-${pad(d.getDate())}T${pad(d.getHours())}:${pad(d.getMinutes())}:00`;
|
||||
}
|
||||
function fmtDateDisplay(iso) { if(!iso) return ''; const d=new Date(iso); return `${DAYS[d.getDay()]}, ${SHORT_MONTHS[d.getMonth()]} ${d.getDate()}, ${d.getFullYear()}`; }
|
||||
// Parse YYYY-MM-DD as local midnight (appending T00:00:00 prevents new Date() treating
|
||||
// a bare date string as UTC, which rolls back one day for timezones behind UTC).
|
||||
function fmtDateDisplay(iso) { if(!iso) return ''; const d=new Date(iso+'T00:00:00'); return `${DAYS[d.getDay()]}, ${SHORT_MONTHS[d.getMonth()]} ${d.getDate()}, ${d.getFullYear()}`; }
|
||||
function fmtTimeDisplay(slot) { const f=TIME_SLOTS.find(s=>s.value===slot); return f?f.label:slot; }
|
||||
|
||||
const FREQ_OPTIONS = [
|
||||
|
||||
Reference in New Issue
Block a user