diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 19116f2c7..740ca4e0c 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.7.4 + - rfe: Extend DateTime for Week-Nrs (#9151) - fixed: 7.6 upgrade left some default content marked as packages - fixed #9816: Syndicated content asset fails on feeds including a UTF8 BOM - fixed: Spam in the wiki (#10050) diff --git a/lib/WebGUI/DateTime.pm b/lib/WebGUI/DateTime.pm index 544052acf..69bc597b3 100644 --- a/lib/WebGUI/DateTime.pm +++ b/lib/WebGUI/DateTime.pm @@ -513,6 +513,7 @@ A string representing the output format for the date. Defaults to '%z %Z'. You c %P = An upper-case AM/PM. %s = A two digit second. %t = Time zone name. + %V = Week number. %w = Day of the week. %W = Day of the week abbreviated. %y = A four digit year. @@ -555,6 +556,7 @@ sub webguiDate { "p" => "P", "P" => "p", "s" => "S", + "V" => "V", "w" => "A", "W" => "a", "y" => "Y", diff --git a/lib/WebGUI/Session/DateTime.pm b/lib/WebGUI/Session/DateTime.pm index 17d6d8f78..5e07d401e 100644 --- a/lib/WebGUI/Session/DateTime.pm +++ b/lib/WebGUI/Session/DateTime.pm @@ -287,6 +287,7 @@ A string representing the output format for the date. Defaults to '%z %Z'. You c %P = An upper-case AM/PM. %s = A two digit second. %t = Time zone name. + %V = week number. %w = Day of the week. %W = Day of the week abbreviated. %y = A four digit year. @@ -331,6 +332,7 @@ sub epochToHuman { "p" => "P", "P" => "p", "s" => "S", + "V" => "V", "w" => "A", "W" => "a", "y" => "Y",