Fixes #349 | DateChanger plugin: use UTC+timeoffset
- Note removed from support plugin - DateChanger plugin is activated again as default
This commit is contained in:
parent
84c8de2bf7
commit
49f3d622b6
@ -27,9 +27,7 @@ $fp_plugins = array(
|
||||
'postviews', // Counts and displays entry views
|
||||
'commentcenter', // including Akismet interface
|
||||
'mediamanager',
|
||||
// 'datechanger', // Lets you change the publish date for (new) entries.
|
||||
// DateChanger uses UTC. The time correction in the admin area is skipped
|
||||
// Therefore deactivated by default
|
||||
'datechanger', // Lets you change the publish date for (new) entries.
|
||||
'feed', // Activates the RSS and Atom feed widget
|
||||
'emoticons', // Activates an emoticons toolbar for entries and static pages
|
||||
'support', // Provides the FlatPress admin and the community with all relevant data in case of problems.
|
||||
|
@ -4,8 +4,6 @@ Lets you change the publish date for (new) entries. Therefore, it adds the edit
|
||||
|
||||
This plugin only works for NEW entries. Once published, the date cannot be changed again!
|
||||
|
||||
Attention: The plugin skips a time correction, which can be set in the configuration menu.
|
||||
|
||||
About
|
||||
-----
|
||||
The DateChanger plugin was originally built by Edoardo Vacchi (NoWhereMan).
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Type: Block
|
||||
* Author: FlatPress
|
||||
* Description: Allows to change the date and time for <a href="./admin.php?p=entry&action=write" title="Write Entry">new entries</a> via a drop-down menu. Part of the standard distribution. <a href="./fp-plugins/datechanger/doc_datechanger.txt" title="Instructions" target="_blank">[Instructions]</a>
|
||||
* Version: 1.0.4
|
||||
* Version: 1.0.5
|
||||
* Author URI: https://www.flatpress.org
|
||||
*/
|
||||
if (!(basename($_SERVER ['PHP_SELF']) == 'admin.php' && // must be admin area
|
||||
@ -15,7 +15,9 @@ if (!(basename($_SERVER ['PHP_SELF']) == 'admin.php' && // must be admin area
|
||||
return;
|
||||
|
||||
function plugin_datechanger_toolbar() {
|
||||
$time = time();
|
||||
// $time = time();
|
||||
// use UTC + timeoffset, coe.date.php. line 64
|
||||
$time = date_time();
|
||||
|
||||
$h = date('H', $time);
|
||||
$m = date('i', $time);
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> </p>',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</p>',
|
||||
|
||||
'output_datechanger' => '<p class="attention"><strong>ℹ</strong> The active DateChanger plugin skips the corrected timezone in the configuration menu.</p>',
|
||||
|
||||
// output "Core files"
|
||||
'h2_permissions' => 'File and directory permissions',
|
||||
'h3_core_files' => 'Core',
|
||||
|
@ -111,10 +111,6 @@ if (class_exists('AdminPanelAction')) {
|
||||
$support ['plugins'] = $lang ['admin'] ['maintain'] ['support'] ['neg_plugins'];
|
||||
}
|
||||
|
||||
if (function_exists("plugin_datechanger_toolbar")) {
|
||||
$support ['output_datechanger'] = $lang ['admin'] ['maintain'] ['support'] ['output_datechanger'];
|
||||
}
|
||||
|
||||
/**
|
||||
* prepare output "Core files"
|
||||
*/
|
||||
|
@ -39,9 +39,6 @@
|
||||
<li>
|
||||
{$support.plugins}{$support.output_plugins}
|
||||
</li>
|
||||
<li>
|
||||
{$support.output_datechanger}
|
||||
</li>
|
||||
</ul>
|
||||
<p class="codeblock">[/code]</p>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user