display dates in consistent format

This commit is contained in:
Hayden 2022-10-31 18:36:38 -08:00
parent 522253de18
commit 7a3c123943
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -27,9 +27,9 @@
case DateTimeFormat.RELATIVE:
return useTimeAgo(dt).value + useDateFormat(dt, " (MM-DD-YYYY)").value;
case DateTimeFormat.LONG:
return useDateFormat(dt, "YYYY-MM-DD (dddd)").value;
return useDateFormat(dt, "MM-DD-YYYY (dddd)").value;
case DateTimeFormat.SHORT:
return useDateFormat(dt, "YYYY-MM-DD").value;
return useDateFormat(dt, "MM-DD-YYYY").value;
default:
return "";
}