Time select

…a

Do you have the page source? I ask because that line:

if(0) $('day_schedule_selector_tz').innerHTML = clientTz();

doesn’t work. It can’t because the if(0) is basically saying “if nothing is true, get clientTz()”.

Anyways, I use moment.js all the time and it would be a perfect fit for this problem. With Moment, you would do something like this:

$('day_schedule_selector_tz').innerHTML = moment.tz(theTime, clientTz()).format()

where theTime is whatever the user time input is.

1 Like

thanks a lot…for your reply :blush: .:slight_smile:
<snip />

Hey chuma2chuma,

I removed your email address from your post.
Please keep personal info private.
You can PM members directly - whether they choose to answer is a different matter …

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.