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
Post a Comment