jQuery UI Datepicker and Timezones

允我心安 提交于 2019-12-08 13:52:39

You could geo-locate the IP address of your client and figure out the time zone accordingly and adjust the zime(day) on your site.
using Javascript: see Google API ClientLocation

edit wait. It actually would be easier to get the date directly using Javascript. What speaks against it?

  var currentDate = new Date()
  var day = currentDate.getDate()
  var month = currentDate.getMonth()
  var year = currentDate.getFullYear()
  document.write("<b>" + day + "/" + month + "/" + year + "</b>")

Apparently I'm still half asleep ;)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!