Skip to content
Snippets Groups Projects
Commit e69ea904 authored by gregor herrmann's avatar gregor herrmann
Browse files

Add patch for compatibility with Calendar::Simple 2.0.

Closes: #964155
parent c94493d0
No related branches found
No related tags found
No related merge requests found
Description: compatibility fix for Calendar::Simple 2.0
which defaults to starting the week on Sunday.
If no start_day is passed, default to Sunday in order to keep current behaviour.
Origin: vendor
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=132932
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=132932
Bug-Debian: https://bugs.debian.org/964155
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2022-05-23
--- a/lib/Template/Plugin/Calendar/Simple.pm
+++ b/lib/Template/Plugin/Calendar/Simple.pm
@@ -11,6 +11,7 @@
sub new {
my ($class, $context, @args) = @_;
+ push @args, '0' if scalar @args < 3; # default to Sunday
my @cal = Calendar::Simple::calendar( @args );
return bless {
_CONTEXT => $context,
calendar-simple-2.0.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment