Yes that's correct, it would use the browser/device time to render the date. With PHP it'll need to check server time and also could be shown as stale, if the site page caching was aggressive. The JS method is just more lightweight and works with static page and will "update" despite page caching.

Reply to this note

Please Login to reply.

Discussion

No replies yet.