Removing tsjz for dayjs tz
This commit is contained in:
parent
31346e469e
commit
8385e5fa96
|
@ -52,7 +52,9 @@ class ShowbuilderController extends Zend_Controller_Action
|
||||||
$this->view->headScript()->appendFile($baseUrl.'js/airtime/showbuilder/main_builder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/showbuilder/main_builder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
// MEDIA BUILDER
|
// MEDIA BUILDER
|
||||||
$this->view->headScript()->appendFile($baseUrl.'js/js-timezone-detect/jstz-1.0.4.min.js','text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/libs/dayjs.min.js','text/javascript');
|
||||||
|
$this->view->headScript()->appendFile($baseUrl.'js/libs/utc.min.js','text/javascript');
|
||||||
|
$this->view->headScript()->appendFile($baseUrl.'js/libs/timezone.min.js','text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/spl.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/spl.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/podcast.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/podcast.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/publish.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/publish.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
|
|
|
@ -38,8 +38,10 @@ $(document).ready(function() {
|
||||||
language = language.replace("-", "_");
|
language = language.replace("-", "_");
|
||||||
$("#setup_language").val(language);
|
$("#setup_language").val(language);
|
||||||
|
|
||||||
var timezone = jstz.determine();
|
dayjs.extend(utc)
|
||||||
var timezone_name = timezone.name();
|
dayjs.extend(timezone)
|
||||||
|
|
||||||
|
var timezone_name = dayjs.tz.guess();
|
||||||
if (timezone_name === undefined) {
|
if (timezone_name === undefined) {
|
||||||
timezone_name = "America/Toronto";
|
timezone_name = "America/Toronto";
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue