/[smecontribs]/rpms/smeserver-vacation/contribs10/smeserver-vacation-1.1-Better-display-dates-in-list.patch
ViewVC logotype

Annotation of /rpms/smeserver-vacation/contribs10/smeserver-vacation-1.1-Better-display-dates-in-list.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue May 19 14:34:51 2020 UTC (4 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-34_el7_sme, smeserver-vacation-1_1-31_el7_sme, smeserver-vacation-1_1-32_el7_sme, smeserver-vacation-1_1-30_el7_sme, smeserver-vacation-1_1-35_el7_sme, smeserver-vacation-1_1-36_el7_sme, smeserver-vacation-1_1-33_el7_sme, smeserver-vacation-1_1-28_el7_sme, smeserver-vacation-1_1-29_el7_sme, HEAD
* Tue May 19 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-28.sme
- Part of SME10 Server manager2  - Better display of dates in list [SME:10927 ]

1 brianr 1.1 diff -urN smeserver-vacation-1.1.old/root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/lib/SrvMngr/Controller/Uservacations.pm smeserver-vacation-1.1/root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/lib/SrvMngr/Controller/Uservacations.pm
2     --- smeserver-vacation-1.1.old/root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/lib/SrvMngr/Controller/Uservacations.pm 2020-05-19 15:20:01.103030370 +0100
3     +++ smeserver-vacation-1.1/root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/lib/SrvMngr/Controller/Uservacations.pm 2020-05-19 15:15:00.000000000 +0100
4     @@ -200,14 +200,23 @@
5     FullName => $user->prop('FirstName') . " " .$user->prop('LastName'),
6     status => $self->l($status),
7     EmailVacation => $EmailVacation,
8     - EmailVacationFrom => $EmailVacationFrom,
9     - EmailVacationTo => $EmailVacationTo,
10     + EmailVacationFrom => showDate($EmailVacationFrom),
11     + EmailVacationTo => showDate($EmailVacationTo),
12     Modify => $self->l('vac_MODIFY'),
13     }
14     }
15     return @data;
16     }
17    
18     +sub showDate
19     +{
20     + my $strDate = shift;
21     + my ($Year,$Month,$Day) = ($strDate =~ /(\d{4})(\d{2})(\d{2})/);
22     + #my $Unix = mktime(0,0,0,$Day,$Month,$Year);
23     + return "$Year-$Month-$Day";
24     +}
25     +
26     +
27     sub modify_link
28     {
29     my ($data_item, $row, $field) = @_;
30     diff -urN smeserver-vacation-1.1.old/root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/lib/SrvMngr/I18N/Modules/Uservacations/en.pm smeserver-vacation-1.1/root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/lib/SrvMngr/I18N/Modules/Uservacations/en.pm
31     --- smeserver-vacation-1.1.old/root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/lib/SrvMngr/I18N/Modules/Uservacations/en.pm 2020-05-19 15:20:01.103030370 +0100
32     +++ smeserver-vacation-1.1/root/etc/e-smith/web/panels/manager2/cgi-bin/srvmngr/lib/SrvMngr/I18N/Modules/Uservacations/en.pm 2020-05-19 15:18:00.000000000 +0100
33     @@ -15,8 +15,8 @@
34     ',
35     'vac_LABEL_VACATION' =>'Vacation',
36     'vac_NO_FORWARDS'=>'No users found for forwarding',
37     -'vac_VACATION_FROM' =>'Vacation starts on <br>(YYYYMMDD)',
38     -'vac_VACATION_TO' =>'Vacation finishes on <br>(YYYYMMDD)',
39     +'vac_VACATION_FROM' =>'Vacation starts on <br>(YYYY-MM-DD)',
40     +'vac_VACATION_TO' =>'Vacation finishes on <br>(YYYY-MM-DD)',
41     'vac_VACATION_FROM1' =>'Vacation starts on',
42     'vac_VACATION_TO1' =>'Vacation finishes on',
43     'vac_MESSAGE' =>'Vacation message',

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed