Sorry about the long delay.
Quote: Originally posted by Mouser |
The "time" you see, will be the local time of the logged in user who modified the text. The time will NOT change/update itself it another user from a
different timezone views it. |
That's no problem as the forum in question is a norwegian forum, and all users are in the same
timezone.
Quote: |
Replace by:
Code: | $messageinput .= "\n\n[".$lang['textediton'].' '.gmdate($dateformat).' '.$lang['textat'].' '.gmdate($timeformat).' '.$lang['textby']." $username]"; | |
That definately does not work.
«timeformat» displays whether the forum have a 12
or 24 hour clock.
I.e. It said
Edited at 15-02-2013 at 24 by username. If my forum had a 12 hour clock, it would say
at 12.
But your post pointed me to where I must change, so I experimented a little and came with a solution that works.
Replace with:
Code: |
$currtime = $onlinetime + ($timeoffset * 3600) + ($addtime * 3600);
$time = gmdate($timecode, $currtime);
$messageinput .= "\n\n[".$lang['textediton'].' '.gmdate($dateformat).' '.$lang['textat'].' '.$time.' '.$lang['textby']." $username]"; |
Thank you for the help and inspiration.