Fixes #349 | DateChanger plugin: use UTC+timeoffset
Note removed from support plugin DateChanger plugin is activated again as default
This commit is contained in:
commit
cd905da083
@ -27,9 +27,7 @@ $fp_plugins = array(
|
|||||||
'postviews', // Counts and displays entry views
|
'postviews', // Counts and displays entry views
|
||||||
'commentcenter', // including Akismet interface
|
'commentcenter', // including Akismet interface
|
||||||
'mediamanager',
|
'mediamanager',
|
||||||
// 'datechanger', // Lets you change the publish date for (new) entries.
|
'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
|
|
||||||
'feed', // Activates the RSS and Atom feed widget
|
'feed', // Activates the RSS and Atom feed widget
|
||||||
'emoticons', // Activates an emoticons toolbar for entries and static pages
|
'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.
|
'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!
|
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
|
About
|
||||||
-----
|
-----
|
||||||
The DateChanger plugin was originally built by Edoardo Vacchi (NoWhereMan).
|
The DateChanger plugin was originally built by Edoardo Vacchi (NoWhereMan).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Type: Block
|
* Type: Block
|
||||||
* Author: FlatPress
|
* 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>
|
* 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
|
* Author URI: https://www.flatpress.org
|
||||||
*/
|
*/
|
||||||
if (!(basename($_SERVER ['PHP_SELF']) == 'admin.php' && // must be admin area
|
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;
|
return;
|
||||||
|
|
||||||
function plugin_datechanger_toolbar() {
|
function plugin_datechanger_toolbar() {
|
||||||
$time = time();
|
// $time = time();
|
||||||
|
// use UTC + timeoffset, coe.date.php. line 64
|
||||||
|
$time = date_time();
|
||||||
|
|
||||||
$h = date('H', $time);
|
$h = date('H', $time);
|
||||||
$m = date('i', $time);
|
$m = date('i', $time);
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> </p>',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> </p>',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -34,8 +34,6 @@ $lang ['admin'] ['maintain'] ['support'] = array(
|
|||||||
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
'pos_plugins' => '<p class="output"><strong>Activated plugins:</strong> ',
|
||||||
'neg_plugins' => '<p class="output"><strong>Activated plugins:</strong> Could not be determined.</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"
|
// output "Core files"
|
||||||
'h2_permissions' => 'File and directory permissions',
|
'h2_permissions' => 'File and directory permissions',
|
||||||
'h3_core_files' => 'Core',
|
'h3_core_files' => 'Core',
|
||||||
|
@ -111,10 +111,6 @@ if (class_exists('AdminPanelAction')) {
|
|||||||
$support ['plugins'] = $lang ['admin'] ['maintain'] ['support'] ['neg_plugins'];
|
$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"
|
* prepare output "Core files"
|
||||||
*/
|
*/
|
||||||
|
@ -39,9 +39,6 @@
|
|||||||
<li>
|
<li>
|
||||||
{$support.plugins}{$support.output_plugins}
|
{$support.plugins}{$support.output_plugins}
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
{$support.output_datechanger}
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<p class="codeblock">[/code]</p>
|
<p class="codeblock">[/code]</p>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user