Skip to content

Commit

Permalink
Support 0 year and month in _GetNumberOfSecondsFromElements
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Mar 23, 2024
1 parent 6eeef35 commit e333368
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/dpkg/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dfdatetime (20240316-1) unstable; urgency=low
dfdatetime (20240323-1) unstable; urgency=low

* Auto-generated

-- Log2Timeline maintainers <log2timeline-maintainers@googlegroups.com> Sat, 16 Mar 2024 21:04:25 +0100
-- Log2Timeline maintainers <log2timeline-maintainers@googlegroups.com> Sat, 23 Mar 2024 07:08:39 +0100
2 changes: 1 addition & 1 deletion dfdatetime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
from dfdatetime import webkit_time


__version__ = '20240316'
__version__ = '20240323'
2 changes: 1 addition & 1 deletion dfdatetime/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def _GetNumberOfSecondsFromElements(
Raises:
ValueError: if the time elements are invalid.
"""
if not month or not day_of_month:
if month is None or day_of_month is None:
return None

if hours is None:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = dfdatetime
version = 20240316
version = 20240323
description = Digital Forensics date and time (dfDateTime).
long_description = dfDateTime, or Digital Forensics date and time, provides date and time objects to preserve accuracy and precision.
long_description_content_type = text/plain
Expand Down

0 comments on commit e333368

Please sign in to comment.