Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
add month name
  • Loading branch information
mininxd authored Nov 29, 2023
1 parent 70a1523 commit 0768f0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ module.exports = async (req, res) => {
weekday: unixMoment.format("dddd"),
day: unixMoment.format("D"),
month: unixMoment.format("M"),
monthName: unixMoment.format("MMMM"),
year: unixMoment.format("yyyy"),
},
],
Expand All @@ -100,6 +101,7 @@ module.exports = async (req, res) => {
weekday: wibMoment.format("dddd"),
day: wibMoment.format("D"),
month: wibMoment.format("M"),
monthName: wibMoment.format("MMMM"),
year: wibMoment.format("yyyy"),
},
],
Expand All @@ -122,6 +124,7 @@ module.exports = async (req, res) => {
weekday: witaMoment.format("dddd"),
day: witaMoment.format("D"),
month: witaMoment.format("M"),
monthName: witaMoment.format("MMMM"),
year: witaMoment.format("yyyy"),
},
],
Expand All @@ -144,6 +147,7 @@ module.exports = async (req, res) => {
weekday: witMoment.format("dddd"),
day: witMoment.format("D"),
month: witMoment.format("M"),
monthName: witMoment.format("MMMM"),
year: witMoment.format("yyyy"),
},
],
Expand Down

0 comments on commit 0768f0b

Please sign in to comment.