Bug 28546

Summary: Framework default value special var for year in Manual
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: DocumentationAssignee: Bugs List <koha-bugs>
Status: Needs documenting --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Fridolin Somers 2021-06-10 14:06:53 UTC
There is a mistake (or change) in framework default value special vars.

In manual :

There are several values that you can use here that will be replaced automatically when a new record is created:

    <<MM>> - the current month, 2 digits
    <<DD>> - the current day of month, 2 digits
    <<YEAR>> - the current year, 4 digits
    <<USER>> - the username of the currently logged in user

For example: a default of "<<MM>>/<<DD>>/<<YEAR>>" (without quotes) will print the current date in the form of "01/21/2021"

See
https://gitlab.com/koha-community/koha-manual/-/blob/master/source/administration.rst

But in Koha code in cataloguing/addbiblio.pl :
        $value =~ s/<<YYYY>>/$year/g;
        $value =~ s/<<YY>>/$shortyear/g;