summaryrefslogtreecommitdiff
path: root/fml/lib/Mail/Message
diff options
context:
space:
mode:
Diffstat (limited to 'fml/lib/Mail/Message')
-rw-r--r--fml/lib/Mail/Message/Date.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/fml/lib/Mail/Message/Date.pm b/fml/lib/Mail/Message/Date.pm
index a1d55e45..819e6c51 100644
--- a/fml/lib/Mail/Message/Date.pm
+++ b/fml/lib/Mail/Message/Date.pm
@@ -2,7 +2,7 @@
#
# Copyright (C) 2000,2001,2002,2003 Ken'ichi Fukamachi
#
-# $FML: Date.pm,v 1.18 2003/01/11 15:16:35 fukachan Exp $
+# $FML: Date.pm,v 1.19 2003/01/26 03:23:10 fukachan Exp $
#
package Mail::Message::Date;
@@ -291,6 +291,10 @@ sub date_to_unixtime
my (%month);
my ($zone);
+ # cheap sanity, but ok?;)
+ return 0 unless defined $in;
+ return 0 unless $in;
+
# XXX-TODO: method-ify date_to_unixtime() ?
# XXX-TODO: more documents