[X] I've searched existing issues and found nothing related to my issue.
Describe the bug
While writing tests for the utility functions found in packages/bruno-app/src/utils/common/index.js, I noticed that the humanizeDate function does not reliably return the date it is passed. This is caused by the Date object in JavaScript, which considers time zones when parsing a date.
I have checked the following:
Describe the bug
While writing tests for the utility functions found in
packages/bruno-app/src/utils/common/index.js
, I noticed that thehumanizeDate
function does not reliably return the date it is passed. This is caused by the Date object in JavaScript, which considers time zones when parsing a date.See the discussions here for further explanation:
File in question:
packages/bruno-app/src/utils/common/index.js
Code in question:
The below screenshot illustrates this phenomenon.
.bru file to reproduce the bug
No response
Screenshots/Live demo link