• 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.

Item4717: Making DATE variable use DisplayTimeValues setting

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Low Closed   n/a  

Edit Form Data

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

Detail

Copied from TWiki:Support.MakingDATEUseDisplayTimeValues

Question

I have noticed that when I create a new topic first thing in the morning, the signature offered to me has yesterday's date. I realized that it is showing me the date in GMT. The edit template uses %DATE%, which indeed gives the date in GMT. That behaviour is not what I would have predicted, given that there is a DisplayTimeValues configuration option, which I had set to servertime.

lib/TWiki.pm has this code:

sub _DATE {
    my $this = shift;
    return TWiki::Time::formatTime(time(), '$day $mon $year', 'gmtime');
}

How about changing it to:

sub _DATE {
    my $this = shift;
    return TWiki::Time::formatTime(time(), '$day $mon $year', $TWiki::cfg{DisplayTimeValues} );
}

If I change this myself, does it break anything?

Or if that changes too much, at least could we have a %DISPLAYDATE% variable that can be used in the edit template?

-- TWiki:Main/RichardWalker - 25 Sep 2007

duplicate of Item5293 - fixed now

-- SvenDowideit - 28 Jul 2008

AHEM Item5293 is a duplicate of this issue. But it's good to know it's now fixed.

-- TWiki:Main.RichardWalker - 01 Aug 2008

ItemTemplate
Summary Making DATE variable use DisplayTimeValues setting
ReportedBy TWiki:Main.RichardWalker
Codebase 4.1.2
SVN Range TWiki-4.3.0, Sat, 22 Sep 2007, build 14996
AppliesTo Engine
Component

Priority Low
CurrentState Closed
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-08-01 - RichardWalker
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback