Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support year and month of 0 in _GetNumberOfSecondsFromElements #279

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]> Sat, 16 Mar 2024 21:04:25 +0100
-- Log2Timeline maintainers <[email protected]> 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
Loading