* Mon Jun 09 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-87.sme

- add datetime getYear_list [SME: 13031]
- use esmith::*DB::UTF8 to access db flat files [SME: 13027]
This commit is contained in:
Jean-Philippe Pialasse 2025-06-10 00:09:39 -04:00
parent c85022c49e
commit 91201b7b02
2 changed files with 5 additions and 3 deletions

View File

@ -360,8 +360,9 @@ sub getMonth_list {
sub getYear_list { sub getYear_list {
my $c= shift; my $c= shift;
my @yearArray; my @yearArray;
#TODO set thoses year depending on build date in spec file # could use also `/bin/date '+%Y'`
for ( my $i = 2020; $i < 2060; $i++ ) { my $start=___YEAR___-40; my $max=___YEAR___+40;
for ( my $i = $start; $i <= $max; $i++ ) {
push @yearArray,$i; push @yearArray,$i;
} }

View File

@ -82,7 +82,8 @@ This RPM contributes the navigation bars for the smeserver-manager. New Mojolici
#extract the release number and drop it in to the version for SM2 footer. #extract the release number and drop it in to the version for SM2 footer.
sed -i "s/our \$VERSION = '[^']*'/our \$VERSION = '%{release}'/g" root/usr/share/smanager/lib/SrvMngr.pm sed -i "s/our \$VERSION = '[^']*'/our \$VERSION = '%{release}'/g" root/usr/share/smanager/lib/SrvMngr.pm
year=`date +%Y`
sed -i "s/___YEAR___/$year/g" root/usr/share/smanager/lib/SrvMngr/Controller/Datetime.pm
perl createlinks perl createlinks