mirror of
https://github.com/wekan/wekan.git
synced 2026-02-07 09:01:47 +01:00
Replaced moment.js with Javascript date.
Thanks to xet7 !
This commit is contained in:
parent
8c5b43295d
commit
cb6afe67a7
18 changed files with 933 additions and 222 deletions
|
|
@ -1,6 +1,26 @@
|
|||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
// exporter maybe is broken since Gridfs introduced, add fs and path
|
||||
import { createWorkbook } from './createWorkbook';
|
||||
import {
|
||||
formatDateTime,
|
||||
formatDate,
|
||||
formatTime,
|
||||
getISOWeek,
|
||||
isValidDate,
|
||||
isBefore,
|
||||
isAfter,
|
||||
isSame,
|
||||
add,
|
||||
subtract,
|
||||
startOf,
|
||||
endOf,
|
||||
format,
|
||||
parseDate,
|
||||
now,
|
||||
createDate,
|
||||
fromNow,
|
||||
calendar
|
||||
} from '/imports/lib/dateUtils';
|
||||
|
||||
class ExporterCardPDF {
|
||||
constructor(boardId) {
|
||||
|
|
@ -353,8 +373,8 @@ class ExporterCardPDF {
|
|||
//add data +8 hours
|
||||
function addTZhours(jdate) {
|
||||
const curdate = new Date(jdate);
|
||||
const checkCorrectDate = moment(curdate);
|
||||
if (checkCorrectDate.isValid()) {
|
||||
const checkCorrectDate = new Date(curdate);
|
||||
if (isValidDate(checkCorrectDate)) {
|
||||
return curdate;
|
||||
} else {
|
||||
return ' ';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue