Now getTimezone returns UTC by default if x-client-timezone header not presented .

This commit is contained in:
Alexander Andreev 2021-05-03 02:50:20 +04:00
parent e440ffaf13
commit 8f27417169
Signed by: Arav
GPG Key ID: 610DF2574456329F

View File

@ -33,7 +33,10 @@ exports.getServiceByHost = (host, service="") => {
exports.getTimezone = ctx => {
if (ctx.header['x-client-timezone'] !== undefined)
return ctx.header['x-client-timezone'];
else
return "UTC";
};
exports.formats = formats;
exports.datetime = datetime;