We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7a8ff7 commit 4eff794Copy full SHA for 4eff794
app/util/date.js
@@ -9,8 +9,8 @@ export function toLocaleDateTime(timestamp) {
9
10
export function toDateFormat(timestamp) {
11
const dateObj = new Date(timestamp);
12
- const month = strings(`date.months.${dateObj.getDay()}`);
13
- const day = dateObj.getMonth();
+ const month = strings(`date.months.${dateObj.getMonth()}`);
+ const day = dateObj.getDate();
14
let meridiem = 'am';
15
let hour = dateObj.getHours();
16
if (hour > 12) {
0 commit comments