summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-01-30 03:32:12 +0000
committerfukachan <fukachan>2003-01-30 03:32:12 +0000
commit6e22c93b1b43ec8759400aaa9725242ea970f57e (patch)
tree31852b6141f7a59f07fffa5e4506b1f41a48401c /fml/lib
parentbdd5cd57ab6ae7498f6d9b4dee7f055aaeb66f15 (diff)
downloadfml8-6e22c93b1b43ec8759400aaa9725242ea970f57e.tar.gz
fml8-6e22c93b1b43ec8759400aaa9725242ea970f57e.tar.bz2
fml8-6e22c93b1b43ec8759400aaa9725242ea970f57e.zip
use Mail::Message::Date not strftime().
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/FML/Install.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/fml/lib/FML/Install.pm b/fml/lib/FML/Install.pm
index 24135029..d40afe09 100644
--- a/fml/lib/FML/Install.pm
+++ b/fml/lib/FML/Install.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Install.pm,v 1.3 2003/01/28 23:35:02 fukachan Exp $
+# $FML: Install.pm,v 1.4 2003/01/29 14:21:05 fukachan Exp $
#
package FML::Install;
@@ -656,8 +656,9 @@ sub get_version
}
unless ($vers) {
- use POSIX;
- $vers = strftime("current-%C%y%m%d", localtime());
+ use Mail::Message::Date;
+ my $date = new Mail::Message::Date time;
+ $vers = sprintf("current-%s", $date->{ YYYYMMDD });
}
return $vers;