Index: typo3/sysext/scheduler/mod1/locallang_csh_scheduler.xml
===================================================================
--- typo3/sysext/scheduler/mod1/locallang_csh_scheduler.xml (revision 6329)
+++ typo3/sysext/scheduler/mod1/locallang_csh_scheduler.xml (working copy)
@@ -33,11 +33,13 @@
Enter a start date and time for the task
Date must be entered in a standard format like HH:mm dd-mm-YYYY or YYYY-mm-dd HH:mm. Natural keywords can also be used, like "now" or "tomorrow".
+ Date and time must correspond to the server's time zone.
Start of task
Enter an end date and time for the task, can be blank
Date must be entered in a standard format like HH:mm dd-mm-YYYY or YYYY-mm-dd HH:mm. Natural keywords can also be used, like "now" or "tomorrow".
+ Date and time must correspond to the server's time zone.
Can be left blank, if task is not supposed to end at any point.
Index: typo3/sysext/scheduler/mod1/locallang.xml
===================================================================
--- typo3/sysext/scheduler/mod1/locallang.xml (revision 6329)
+++ typo3/sysext/scheduler/mod1/locallang.xml (working copy)
@@ -37,6 +37,7 @@
Next Execution
Parallel Execution
Allow Parallel Execution
+ Server time
Sleep time
Start (HH:MM DD-MM-YYYY)
Type
@@ -78,6 +79,8 @@
The backend user "_cli_scheduler" was found.
The backend user "_cli_scheduler" exists but is currently disabled.
The backend user "_cli_scheduler" was not found. <a href="%s" title="Click to create the missing user">Create the user now</a>.
+ Current server time is %s.
+ All dates and times in the Scheduler are measured according to the server's time, as the Scheduler is run purely on the server-side.
Are you sure you want to mark this task as not running? Note that this will not stop the actual script (if unsure please refer to the manual).
The task could not be marked as non-running.
The task was successfully marked as non-running.
Index: typo3/sysext/scheduler/mod1/index.php
===================================================================
--- typo3/sysext/scheduler/mod1/index.php (revision 6329)
+++ typo3/sysext/scheduler/mod1/index.php (working copy)
@@ -499,6 +499,23 @@
}
/**
+ * Display the current server's time along with a help text about server time
+ * usage in the Scheduler
+ *
+ * @return string HTML to display
+ */
+ protected function displayServerTime() {
+ // Get the current time, formatted
+ $dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
+ $now = date($dateFormat);
+ // Display the help text
+ $serverTime = '
' . $GLOBALS['LANG']->getLL('label.serverTime') . ' ';
+ $serverTime .= '' . $GLOBALS['LANG']->getLL('msg.serverTimeHelp') . '
';
+ $serverTime .= '' . sprintf($GLOBALS['LANG']->getLL('msg.serverTime'), $now) . '
';
+ return $serverTime;
+ }
+
+ /**
* Delete a task from the execution queue
*
* @return void
@@ -830,6 +847,9 @@
$content .= ' '
. ' ';
+ // Display information about server time usage
+ $content .= $this->displayServerTime();
+
return $content;
}
@@ -1117,8 +1137,9 @@
. '" /> ' . $GLOBALS['LANG']->getLL('action.add') . '';
// Display legend, if there's at least one registered task
+ // Also display information about the usage of server time
if ($numRows > 0) {
- $content .= '' . $GLOBALS['LANG']->getLL('status.legend') . ':
+ $content .= '' . $GLOBALS['LANG']->getLL('status.legend') . '
' . $GLOBALS['LANG']->getLL('status.legend.failure') . '
' . $GLOBALS['LANG']->getLL('status.legend.late') . '
@@ -1126,6 +1147,7 @@
' . $GLOBALS['LANG']->getLL('status.legend.scheduled') . '
' . $GLOBALS['LANG']->getLL('status.legend.disabled') . '
';
+ $content .= $this->displayServerTime();
}
Index: typo3/sysext/scheduler/doc/manual.sxw
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream