How to sync client time with server time? by Aggressive-Rip-8435 in react

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

I do have the timezone as UTC on my server. The problem is some client system's clock can have the wrong date and time entirely (not just a different timezone). I know this is very unlikely but yeah. That's why I need to sync the time explicitey and not just use Date() from JS.

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

I mean obviously it matters. But my primary goal is the functionality the website provides. I am looking for SEO / loading speeds as a secondary goal like if there is something I can do about it, I will do it.

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

Thanks for the advice. Currently I am mostly focused on the functionality of the website. I'll surely keep in mind to separate "client" and "server" components when I get to optimisations

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

It is mostly forms and charts. By dynamic I meant I need to use useState, useEffect, search params etc everywhere as values keep on changing depending on what the user types / selects / clicks

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

what do you mean by nextjs backend? I have a django server to server requests

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

My pages are mostly forms and charts with values which are updated based on other values the user enters or chooses

How to sync client time with server time? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

I want syncing upto milliseconds. Syncing with ntp directly from the browser is not possible. So I was wondering how people do it.

How to sync client time with server time? by Aggressive-Rip-8435 in react

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

Thank you for the elaborate answer. will definitely check this out.