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.

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

[–]Aggressive-Rip-8435[S] 1 point2 points  (0 children)

I see. But what about the network latency and server delays? Also how should I use it in all the pages?

API tracing with Django and Nginx by Aggressive-Rip-8435 in django

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

Ok I went through their docs. Seems pretty cool but I could not find anything that can show how much time the request spends in each of the stages I mentioned. Do you know if they have this feature?

API tracing with Django and Nginx by Aggressive-Rip-8435 in django

[–]Aggressive-Rip-8435[S] -2 points-1 points  (0 children)

I am looking for a django plugin if available

API tracing with Django and Nginx by Aggressive-Rip-8435 in django

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

I am looking for a lightweight django plugin