View | Details | Raw Unified | Return to bug 33242
Collapse All | Expand All

(-)a/t/db_dependent/Letters/TemplateToolkit.t (-2 / +5 lines)
Lines 1159-1164 subtest 'Dates formatting' => sub { Link Here
1159
[% biblio.datecreated %]
1159
[% biblio.datecreated %]
1160
[% biblio.datecreated | \$KohaDates %]
1160
[% biblio.datecreated | \$KohaDates %]
1161
[% biblio.datecreated | \$KohaDates with_hours => 1 %]
1161
[% biblio.datecreated | \$KohaDates with_hours => 1 %]
1162
[% biblio.datecreated | \$KohaDates with_hours => 1, add_years => 2 %]
1163
[% biblio.datecreated | \$KohaDates with_hours => 1, subtract_months => 3 %]
1162
1164
1163
[% biblio.timestamp | \$KohaDates dateformat => 'iso' %]
1165
[% biblio.timestamp | \$KohaDates dateformat => 'iso' %]
1164
[% KohaDates.output_preference( str => biblio.timestamp, dateformat => 'iso' ) %]
1166
[% KohaDates.output_preference( str => biblio.timestamp, dateformat => 'iso' ) %]
Lines 1172-1178 EOF Link Here
1172
            biblio => $biblio->biblionumber,
1174
            biblio => $biblio->biblionumber,
1173
        }
1175
        }
1174
    );
1176
    );
1175
    my $expected_content = sprintf("%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n%s\n",
1177
    my $expected_content = sprintf("%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n",
1176
        '2018-12-13 20:21:22',
1178
        '2018-12-13 20:21:22',
1177
        '13/12/2018',
1179
        '13/12/2018',
1178
        '13/12/2018 20:21',
1180
        '13/12/2018 20:21',
Lines 1180-1185 EOF Link Here
1180
        '2018-12-13',
1182
        '2018-12-13',
1181
        '13/12/2018',
1183
        '13/12/2018',
1182
        '13/12/2018 00:00',
1184
        '13/12/2018 00:00',
1185
        '13/12/2020 00:00',
1186
        '13/09/2018 00:00',
1183
1187
1184
        '2018-12-13',
1188
        '2018-12-13',
1185
        '2018-12-13 20:21',
1189
        '2018-12-13 20:21',
1186
- 

Return to bug 33242