mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
set localized text to moment.js
This commit is contained in:
+4
-3
@@ -151,8 +151,9 @@ function getDay(date) {
|
||||
return moment(date).date();
|
||||
}
|
||||
|
||||
function getDayOfWeek(date) {
|
||||
return moment(date).format('dddd');
|
||||
function getDayOfWeekName(date) {
|
||||
const dayOfWeek = moment(date).days();
|
||||
return dateTimeConstants.allWeekDaysArray[dayOfWeek].name;
|
||||
}
|
||||
|
||||
function getHour(date) {
|
||||
@@ -658,7 +659,7 @@ export default {
|
||||
getMonth,
|
||||
getYearAndMonth,
|
||||
getDay,
|
||||
getDayOfWeek,
|
||||
getDayOfWeekName,
|
||||
getHour,
|
||||
getMinute,
|
||||
getSecond,
|
||||
|
||||
Reference in New Issue
Block a user