forked from mirrors/homebox
fix: time-format-inconsistency (#120)
* fix off by one date display * display dates in consistent format * use token or ci
This commit is contained in:
parent
cd82fe0d89
commit
4a9d21d604
6 changed files with 50 additions and 20 deletions
|
@ -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 "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue