Skip to content
Snippets Groups Projects
Commit 6eb9e002 authored by Fabio Polanco's avatar Fabio Polanco
Browse files

Merge branch 'main' of github.com:HGEpro/LibreHomework into main

parents 4ef6216b 8701b86a
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@
}
async function setup() {
let lang = JSON.parse(await conf.readConfig()).misc.lang || "es";
let lang = JSON.parse(await conf.readConfig()).misc.lang || "en";
return locales[lang];
}
......@@ -41,7 +41,7 @@
tempDate.setHours( taskData.time.match( /(\d{2}):\d{2}/ )[1] );
tempDate.setMinutes( taskData.time.match( /\d{2}:(\d{2})/ )[1] );
if (tempDate.getTime() < Date.now()) {
if (tempDate.getTime() / 1000 < Date.now()) {
dateError = "date_past";
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment