You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've got a problem. I have a defined value I would like displayed when user has already selected his timezone and saved the data.
I've tried:
var ttz = moment.tz("{{form.personal_timezone.value}}")
var tz = $('#id_personal_timezone').timezones()
tz.selectValue(ttz.format("Z"))
Uncaught TypeError: tz.selectValue is not a function
but get an error about selectValue not being a function. How would I go about fixing this?
The text was updated successfully, but these errors were encountered:
var tz = '-04:00';
$('.timezoneEdit').timezones();
var match = $('.timezoneEdit').find('option[data-offset="'+tz+'"]');
if (match.length){
$('.timezoneEdit').val(match.val());
}
Hi, I've got a problem. I have a defined value I would like displayed when user has already selected his timezone and saved the data.
I've tried:
var ttz = moment.tz("{{form.personal_timezone.value}}")
var tz = $('#id_personal_timezone').timezones()
tz.selectValue(ttz.format("Z"))
Uncaught TypeError: tz.selectValue is not a function
but get an error about selectValue not being a function. How would I go about fixing this?
The text was updated successfully, but these errors were encountered: