[libdatetime-timezone-perl] 06/09: More sprintf fixes
gregor herrmann
gregoa at debian.org
Wed Apr 15 19:03:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to annotated tag v1.82
in repository libdatetime-timezone-perl.
commit 06f78c73b3cab216c2860df3fd481d88478cfed3
Author: Dave Rolsky <autarch at urth.org>
Date: Sat Nov 22 16:05:04 2014 -0600
More sprintf fixes
---
lib/DateTime/TimeZone.pm | 5 ++---
tools/parse_olson | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/DateTime/TimeZone.pm b/lib/DateTime/TimeZone.pm
index 6b2b509..57a547f 100644
--- a/lib/DateTime/TimeZone.pm
+++ b/lib/DateTime/TimeZone.pm
@@ -337,9 +337,8 @@ sub _generate_spans_until_match {
seconds => $self->{last_observance}->total_offset
+ $rule->offset_from_std
),
- short_name => sprintf(
- $self->{last_observance}->format, $rule->letter
- ),
+ short_name => $self->{last_observance}
+ ->formatted_short_name( $rule->letter ),
observance => $self->{last_observance},
rule => $rule,
);
diff --git a/tools/parse_olson b/tools/parse_olson
index bb31961..c2aa122 100755
--- a/tools/parse_olson
+++ b/tools/parse_olson
@@ -310,7 +310,7 @@ sub zone_as_spans {
utc_end => $INFINITY,
local_start => $utc_start - $last_observance->total_offset,
local_end => $INFINITY,
- short_name => sprintf( $last_observance->format, '' ),
+ short_name => $last_observance->formatted_short_name(q{}),
offset => $last_observance->total_offset,
is_dst => 0,
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdatetime-timezone-perl.git
More information about the Pkg-perl-cvs-commits
mailing list