fix date with JavaScript date() -


i writing blog, , want use time each blog post created time posted. how can use javascript date(), , keep date same after period of time?

this done server-side, not client side. javascript date() function done on client/browser. so, if changes time on machine, date() function returns different date. if date wrong on machine, date() function returns wrong date. so, normally, blog posts, dates stored on database. if use wordpress or other cms systems, implementation details covered, so, don't have worry implementation details


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -