Open Relvl opened 1 year ago
Describe the bug
logInfo("Ex: %s", dayjs.utc("2023-08-27T11:01:01Z").format("DD-MM-YYYY hh:mm Z")); logInfo("Ex: %s", dayjs.utc("2023-08-27T11:01:01Z").tz(timeZone).format("DD-MM-YYYY hh:mm Z")); logInfo("Ex: %s", dayjs.utc("2023-08-27T11:01:01Z").local().format("DD-MM-YYYY hh:mm Z"));
Shows:
Ex: 27-08-2023 11:01 +00:00 Ex: 27-08-2023 04:01 +05:00 Ex: 27-08-2023 04:01 +05:00
Expected behavior Obviously, 11:01:00 GMT is NOT 04:01:00 +0500, it is 16:01:00 +0500
11:01:00 GMT
04:01:00 +0500
16:01:00 +0500
Information
Should be format("DD-MM-YYYY HH:mm Z")); hh: 01-12 HH: 01-23
format("DD-MM-YYYY HH:mm Z"));
Describe the bug
Shows:
Expected behavior Obviously,
11:01:00 GMT
is NOT04:01:00 +0500
, it is16:01:00 +0500
Information