Change import for @luxon

pull/77/head
MillenniumEarl 2021-03-08 12:20:38 +01:00
parent 2fa1e8cf17
commit 1eb3bdbd96
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
"use strict";
// Public modules from npm
import luxon from "luxon";
import { DateTime } from "luxon";
// Modules from files
import HandiWork from "../classes/handiwork/handiwork.js";
@ -226,7 +226,7 @@ function fillWithPostData(hw: HandiWork, elements: IPostElement[]) {
// Fill the dates
const releaseDate = getPostElementByName(elements, "release date")?.text;
if (luxon.DateTime.fromISO(releaseDate).isValid) hw.lastRelease = new Date(releaseDate);
if (DateTime.fromISO(releaseDate).isValid) hw.lastRelease = new Date(releaseDate);
//#region Convert the author
const authorElement =