Index: mod1/index.php =================================================================== --- mod1/index.php (revision 1208) +++ mod1/index.php (working copy) @@ -96,9 +96,18 @@ $this->doc = t3lib_div::makeInstance('template'); $this->doc->setModuleTemplate(t3lib_extMgm::extPath('scheduler') . 'mod1/mod_template.html'); $this->doc->addStyleSheet('tx_scheduler', t3lib_extMgm::extRelPath('scheduler') . 'res/tx_scheduler_be.css'); + $this->doc->loadExtJS(); + $this->doc->addJsFile($this->backPath . '../t3lib/js/extjs/tceforms.js'); $this->doc->backPath = $this->backPath; $this->doc->bodyTagId = 'typo3-mod-php'; $this->doc->bodyTagAdditions = 'class="tx_scheduler_mod1"'; + // Settings for Date Picker + $typo3Settings = array( + 'datePickerUSmode' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['USdateFormat'] ? 1 : 0, + 'dateFormat' => array('j-n-Y', 'G:i j-n-Y'), + 'dateFormatUS' => array('n-j-Y', 'G:i n-j-Y'), + ); + $this->doc->addInlineSettingArray('', $typo3Settings); // Create scheduler instance $this->scheduler = t3lib_div::makeInstance('tx_scheduler'); @@ -616,7 +625,8 @@ // Start date/time field $table[$tr][] = t3lib_BEfunc::cshItem($this->cshKey, 'task_start', $this->backPath, '|', false, 'margin-bottom:0px;'); $table[$tr][] = '