Hello,
this is a great extension! Thanks oxpus for writing it. I wanted to use it, but the timezone issue prevented me from doing so, so I dug a bit...
The problem was that the forum is on eastern timezone (UTC-4) and the version 3.0.5 forces everything to UTC.
So generating a reminder with only a few minutes in the future, the reminder would show the note right away because the post time and reminder time are several hours ahead.
Solution:
file main.php in notes/controller
at line ~94 could be replaced with:
//date_default_timezone_set('UTC');
//$this->config['board_timezone'] = 'UTC';
//$this->user->data['user_timezone'] = 'UTC';
date_default_timezone_set($config['board_timezone']);
$this->config['board_timezone'] = $config['board_timezone'];
$this->user->data['user_timezone'] = $config['board_timezone'];
This allowed for the posting time to be consistent.
I have also copied a suggestion for a different English translation. Please feel free to use if desired. The text below is the entire text in /notes/language/en/common.php
Thanks again Oxpus for the great work you have done!
<?php
/**
*
* @package phpBB Extension - Personal Notes
* @copyright (c) 2014 OXPUS -
www.oxpus.net
* @license
http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/*
* [ english ] language file
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
$lang = array_merge($lang, array(
'ACP_NOTES' => 'Config notes',
'ACP_NOTES_SETTINGS' => 'Max. number of notes per user',
'UCP_NOTES' => 'Notes',
'UCP_NOTES_CONFIG' => 'Settings',
'NOTES' => 'Notes',
'POPUP_NOTES' => 'Display Personal Notes as Popup',
'FILTER_NOTES' => '<strong>Filter mode</strong><br />Press the search button again or change the sort method to display all notes.',
'NOTES_MEM' => 'Reminder',
'NOTES_MEMTEXT' => '<strong>You have entered notes with a reminder.</strong><br />%sClick here to list these notes.%s<br />(Clicking will remove the reminder)',
'NO_NOTES' => 'You currently have no notes',
'NOTES_CONFIG_SUCCESSFULL' => 'The settings for the notes are saved successfully.<br /><br />%sClick here to return to the configuration%s',
'NOTES_LOG_CONFIG' => 'Change number of notes per user',
));