338655c57b
new Date() never throws so the catch was unreachable. Invalid dates rendered as NaN.NaN.NaN, NaN:NaN Uhr. Use isNaN(d.getTime()) guard to fall back to the raw string instead.