Skip to content

The open alternative to Salesforce, designed for AI.

Fixed format date unit test (#6469)

Lucas Bordeaudb2cb2bc2d6e
diff --git a/packages/twenty-front/src/utils/format/__tests__/formatDate.test.ts b/packages/twenty-front/src/utils/format/__tests__/formatDate.test.ts
index 4e521a88137..a0ca39d2f58 100644
--- a/packages/twenty-front/src/utils/format/__tests__/formatDate.test.ts
+++ b/packages/twenty-front/src/utils/format/__tests__/formatDate.test.ts
@@ -22,8 +22,9 @@ describe('formatToHumanReadableDay', () => {
describe('formatToHumanReadableTime', () => {
it('should format the date to a human-readable time', () => {
- const date = new Date('2022-01-01T12:30:00');
+ const date = new Date('2022-01-01T12:30:00Z');
const result = formatToHumanReadableTime(date, 'UTC');
+
// it seems when running locally on MacOS the space is not the same
expect(['12:30 PM', '12:30 PM']).toContain(result);
});