• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5293: DATE in TWiki.pm to follow configured displaytime

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine TWikiDotPm Normal Closed   patch 4.2.1, 5.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

bin/configure offers: "Set the timezone (this only effects the display of times, all internal storage is still in GMT). May be gmtime or servertime" which can be used to set $TWiki::cfg{DisplayTimeValues} = 'servertime'; in LocalSite.cfg

But the outcome of setting servertime is not what the user expects. Instead of seeing servertime in most places, there is now a confusing mixture of servertime and gmtime. This appears to be due to DATE still running on gmtime. Correcting DATE to servertime seems to give the expected outcome for the intranets who only want to use servertime.

This DATE change should follow on automatically from the LocalSite.cfg setting. The attached patch to TWiki.pm seems to achieve that, but it still needs

  • more testing
  • check other TWiki files (e.g. templates) for any hard coded "GMT" string that might end up being inserted after a server time zone time.

-- TWiki:Main/SueBlake - 27 Jan 2008

Yes, please do this. I have just noticed that the date in the signature box seems to be based on gmtime, so all the users get the previous day's date before 11:00 am. If TWiki is set to use servertime, then all the default date stuff should be based on this, not just some.

-- TWiki:Main.MarcusLeonard - 01 Apr 2008

nice to see someone reads the docco smile commited

-- SvenDowideit - 01 Jun 2008

ItemTemplate
Summary DATE in TWiki.pm to follow configured displaytime
ReportedBy TWiki:Main.SueBlake
Codebase 4.2.0, 4.2.1, ~twiki4
SVN Range TWiki-5.0.0, Wed, 23 Jan 2008, build 16283
AppliesTo Engine
Component TWikiDotPm
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:16864 TWikirev:16865
TargetRelease patch
ReleasedIn 4.2.1, 5.0.0
Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt datepatch.txt r1 manage 0.4 K 2008-01-27 - 00:29 UnknownUser Patch TWiki.pm to make DATE follow chosen display time
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r8 - 2008-08-04 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback