26 (edited by zetrader 2017-03-11 13:12)

Re: Possible to have an extension to edit topic and post time ?

Thanks it works fine for Pan Uploader, the errors messages with the images are not there anymore.
Same problem with upload files :

Strict Standards: date(): We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /xxx/extensions/pan_uploader/files.php on line 164 11.03.2017 14:08

line 164 is :

<td class="tc2"><?php echo date("d.m.Y  H:i", $file['file_loaded']) ?></td>

so it will become :

<td class="tc2"><?php echo format_time($file['file_loaded']) ?></td>

Confirmed, errors gone too for files smile

Re: Possible to have an extension to edit topic and post time ?

Yes I know. Do exactly the same.

Re: Possible to have an extension to edit topic and post time ?

Yes, the same error for Pan Moderator, in .../extensions/pan_moderator/hooks/ed_pre_subject.php when you change post date.

I've changed :

            <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_pan_moderator['posted'] ?></span><small><?php printf($lang_pan_moderator['posted_i'], date("Y-m-d H:i:s", time())) ?></small></label><br />
            
            <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="datetime" name="req_posted" value="<?php echo (isset($_POST['req_posted']) ? date("Y-m-d H:i:s", $posted) : date("Y-m-d H:i:s", $cur_post['posted'])) ?>" size="20" maxlength="19" /></span>

By :

            <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_pan_moderator['posted'] ?></span><small><?php printf($lang_pan_moderator['posted_i'], format_time(time())) ?></small></label><br />
            
            <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="datetime" name="req_posted" value="<?php echo (isset($_POST['req_posted']) ? format_time($posted) : format_time($cur_post['posted'])) ?>" size="20" maxlength="19" /></span>

Errors are gone too when editing and changing date of posts.

29 (edited by PanBB.Ru 2017-03-11 14:26)

Re: Possible to have an extension to edit topic and post time ?

Use only this format

"Y-m-d H:i:s"

use this

            <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_pan_moderator['posted'] ?></span><small><?php printf($lang_pan_moderator['posted_i'], format_time(time(),1,'Y-m-d H:i:s',null,1)) ?></small></label><br />
            
            <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="datetime" name="req_posted" value="<?php echo (isset($_POST['req_posted']) ? format_time($posted,1,'Y-m-d H:i:s',null,1) : format_time($cur_post['posted'],1,'Y-m-d H:i:s',null,1)) ?>" size="20" maxlength="19" /></span>

Thx for your bagfix!