pickadate.js
pickadate.js copied to clipboard
timezone handling
It's a little unclear from documentation, but I think pickadate.js simply uses the timezone of the browser and then submits content without any indication of the timezone of the browser. Is there any method to submit the timezone of the browser? I thought perhaps something in the format
of pickatime()
, but the docs don't show any way to do that.
+1
Well, for anyone else looking at this... I currently work around the problem by having a hidden field to record the timezone offset and then populate that with javascript. You get the timezone offset by:
var dateobj = new Date();
var offset = -dateobj.getTimezoneOffset();