Tags:
create new tag
view all tags

SID-00978: Date and time

Status: Answered Answered TWiki version: 4.3.1 Perl version:
Category: CommentPlugin Server OS: Linux Last update: 15 years ago

I am trying to use the Comment plugin. This works fine but since we are 12 hours ahead of GMT, when somebody leaves a comment in the morning, the date tag is of the previous day. I have changed the localization from gmt to servertime but this does not seem to help. Is there a way I can get this to give the correct time and day when a comment is posted?

Thanks

-- OseiAmoafo - 2010-09-24

Discussion and Answer

Not sure, plugins should be aware of gmt vs servertime configure setting. Which plugin are you referring to, the CommentPlugin or ActionTrackerPlugin?

-- PeterThoeny - 2010-09-24

I am refering to the CommentPlugin. After the comment, it shows the date the person put in the comment. And this tends to show the previous day if it was entered during our morning.

Eg. This is really good. -- OseiAmoafo - 23 Sep 2010 but this was actually entered on the 24 Sep 2010

-- OseiAmoafo - 2010-09-24

I changed the category of this question from ActionTrackerPlugin to CommentPlugin.

-- PeterThoeny - 2010-09-24

Look at the comment plugin template rules, TWiki.CommentPluginTemplate. You can replace %GMTIME{}% with %DISPLAYTIME% or %SERVERTIME%. Best to overload in the user template so that your modifications do not get lost on upgrade.

-- PeterThoeny - 2010-09-24

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Date and time
SupportCategory CommentPlugin
TWiki version 4.3.1
Server OS Linux
Web server Apache 2.0.63
Perl version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2010-09-24 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.