49
How an HTTP header caused time.gov to skew from UTC
(alexsci.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
I love a real pregramming blog. I actually wrote my own HTTP frontend for my NTP server. It uses the "new Date()" and doesn't adjust for RTT.
My approach was for all static content to be cached, which is everything except for the raw timestamp. I also ensured the whole website would fit in a single TCP frame if it had to. No repeat round trips.
Here it is, anyway: https://ntp.ubermotive.com/
I should probably try to get better timing adjustment into it. The primary goal was more an exercise in golfing than anything else. The site is seriously small.