2 Commits

Author SHA1 Message Date
0cd699b2d3 cancel timezone error 2023-01-05 09:46:33 +02:00
a2a0d85e5d add TZ to Dockerfile 2023-01-05 08:03:38 +02:00
2 changed files with 10 additions and 9 deletions

View File

@@ -68,6 +68,7 @@ ENV SSHWIFTY_HOSTNAME= \
SSHWIFTY_ONLYALLOWPRESETREMOTES=
COPY --from=builder /sshwifty /
COPY . /sshwifty-src
RUN apk add --no-cache tzdata
RUN set -ex && \
adduser -D sshwifty && \
chmod +x /sshwifty && \

View File

@@ -286,16 +286,16 @@ function startApp(rootEl) {
clientTime = new Date().getTime(),
timeDiff = Math.abs(serverTime - clientTime);
if (timeDiff > maxTimeDiff) {
this.loadErr =
"The time difference between this client " +
"and the backend server is beyond operational limit.\r\n\r\n" +
"Please try reload the page, and if the problem persisted, " +
"consider to adjust your local time so both the client and " +
"the server are running at same date time";
// if (timeDiff > maxTimeDiff) {
// this.loadErr =
// "The time difference between this client " +
// "and the backend server is beyond operational limit.\r\n\r\n" +
// "Please try reload the page, and if the problem persisted, " +
// "consider to adjust your local time so both the client and " +
// "the server are running at same date time";
return;
}
// return;
// }
}
let self = this;