cal.pub0.org/apps/web
Sangboak Lee 229aeeb0c9
Fix booking time hydration error (#7253)
Root cause of the error is that both server and client try to parse date differently due to localStorage. Since server does not know localStorage when render initial HTML it renders page as if there is no value set for time format.
 On the other hand, client side know the value of time format when it tries to render.

To fix the issue, we force it to parse date with default format at the initial rendering time.

- Add `withDefaultTimeFormat` argument to `parseDate` function
- Add `withDefaultTimeFormat` argument to `parseRecurringDates` function
- Leverage useEffect to dynamically update `withDefaultTimeFormat` arg passed to function

Co-authored-by: sangboak.lee <sangboak.lee@woowahan.com>
Co-authored-by: zomars <zomars@me.com>
2023-03-11 00:24:01 +00:00
..
components Fix booking time hydration error (#7253) 2023-03-11 00:24:01 +00:00
docs Fix SAML login (#4037) 2022-08-30 12:25:24 -06:00
fonts feat: use `@next/font` for font loading (#6346) 2023-02-17 18:53:17 +01:00
lib Fix booking time hydration error (#7253) 2023-03-11 00:24:01 +00:00
pages feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
playwright Fixed test (#7572) 2023-03-07 15:15:11 -07:00
public New Crowdin translations by Github Action (#7632) 2023-03-10 16:55:21 -07:00
scripts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
server/lib feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
styles max-height for description + scroll bar, removing description icon (#7535) 2023-03-06 16:44:31 +00:00
test feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
.eslintignore Fixes for lint 2022-02-10 14:22:45 -07:00
.gitignore Bugfix/revert e5ba8616 (#5479) 2022-11-11 09:47:11 +00:00
.nvmrc chore(web): update .nvmrc to node 16 (#6214) 2023-01-04 15:20:05 -07:00
calendso.yaml Deprecated API endpoints cleanup (#5478) 2022-11-11 19:54:44 +00:00
middleware.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
next-i18next.config.js Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
next.config.js feat: use next transpile packages feature (#7527) 2023-03-06 13:10:39 +00:00
package.json Revert "Fix conflicts for embed tests (#7311)" (#7670) 2023-03-10 16:59:58 -07:00
postcss.config.js Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
project.toml Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
sentry.client.config.js Bugfix/revert e5ba8616 (#5479) 2022-11-11 09:47:11 +00:00
sentry.properties Bugfix/revert e5ba8616 (#5479) 2022-11-11 09:47:11 +00:00
sentry.server.config.js Bugfix/revert e5ba8616 (#5479) 2022-11-11 09:47:11 +00:00
tailwind.config.js Revert "experiment: disco border (#6531)" 2023-01-18 19:29:36 +00:00
tsconfig.json Routing Forms Improvements - Rename routing_forms to routing-forms (#4546) 2022-09-22 22:53:43 +05:30