You are here: Foswiki>Tasks Web>Item13044 (11 Feb 2015, GeorgeClark)Edit Attach

Item13044: SERVERTIME disregards format string

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiTime
Branches:
Reported By: RaymondLutz
Waiting For: Main.RaymondLutz
Last Change By: GeorgeClark
No matter what the format string is, the macro SERVERTIME uses the sitepreference

example: DATE: %SERVERTIME{"$mo/$day/$year"}% DAY: %SERVERTIME{"$wday"}%

should provide DATE: 10/01/2014 DAY: Wed

Actually provides: DATE: 2014-10-01 19:06:39 DAY: 2014-10-01 19:06:39

Try it here: (active macros) DATE: 04/19/2024 DAY: Fri

which seems to work, so perhaps it is not an issue in the version of foswiki installed here??

-- RaymondLutz - 01 Oct 2014

Any chance you've got a plugin conflict or some other issue influencing the rendering of SERVERTIME? Or maybe an incomplete upgrade from an older version. The formatting is done by the module lib/Foswiki/Time.pm. If you have any thoughts on what might be different on your systems, please let us know. Otherwise we'll mark this No Action.

-- GeorgeClark - 22 Dec 2014

Closing no action.

-- GeorgeClark - 11 Feb 2015
 

ItemTemplate edit

Summary SERVERTIME disregards format string
ReportedBy RaymondLutz
Codebase 1.1.9
SVN Range
AppliesTo Engine
Component FoswikiTime
Priority Normal
CurrentState No Action Required
WaitingFor RaymondLutz
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 11 Feb 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy