summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-12-23 18:52:22 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-12-23 18:52:22 +0000
commitef742918c6134071bcfb9213caca81892788e912 (patch)
treeaa8fba34884c42b3e8dffac327b527c520059c4b
parent5941c9026bb06ed5aa666a7ace71e7c1f2af41c9 (diff)
downloadrdiff-backup-ef742918c6134071bcfb9213caca81892788e912.tar.gz
The epoch is now a valid date.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@982 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/CHANGELOG2
-rw-r--r--rdiff-backup/rdiff_backup/Time.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 8285ced..7452b81 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,8 @@
New in v1.2.3 (????/??/??)
---------------------------
+The epoch is now a valid date. Closes Savannah bug #24814. (Andrew Ferguson)
+
Report that connection has dropped if filesystem operation returns ENOTCONN.
Closes Ubuntu bug #219920. (Andrew Ferguson)
diff --git a/rdiff-backup/rdiff_backup/Time.py b/rdiff-backup/rdiff_backup/Time.py
index 564dc20..fee2276 100644
--- a/rdiff-backup/rdiff_backup/Time.py
+++ b/rdiff-backup/rdiff_backup/Time.py
@@ -242,6 +242,6 @@ the day).""" % timestr)
timestr = "%s-%02d-%02dT00:00:00%s" % (match.group('year'),
int(match.group('month')), int(match.group('day')), gettzd())
t = stringtotime(timestr)
- if t: return t
+ if t is not None: return t
else: error()