[Pkg-mailman-hackers] Bug#1104330: fix warnings of datetime for hyperkitty

Fu, Rong (CN) Rong.Fu.CN at windriver.com
Tue Apr 29 07:06:55 BST 2025


Package: hyperkitty
Version: 1.3.12-3
Severity: normal

Dear Maintainer,

I'd like to submit a patch for the hyperkitty package that fixes warning in the file  "hyperkitty/tests/models/test_email.py"

See the warnings in https://ci.debian.net/packages/h/hyperkitty/unstable/amd64/60182734/

Before the fix:

.s.x.x...s............s......s......................................................................................................../usr/lib/python3/dist-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField Email.date received a naive datetime (2012-11-02 12:07:54) while time zone support is active.
  warnings.warn(
/usr/lib/python3/dist-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField Email.archived_date received a naive datetime (2012-11-02 12:07:54) while time zone support is active.
  warnings.warn(
/usr/lib/python3/dist-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField Thread.date_active received a naive datetime (2012-11-02 12:07:54) while time zone support is active.
  warnings.warn(
..............................................................................................................................................................................................<p>This is the replied text.</p>

With the patch, the warnings are fixed.

Thank you for considering this patch attached

Rong Fu



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mailman-hackers/attachments/20250429/a09b1cd5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_warnings_for_datetime.patch
Type: application/octet-stream
Size: 2558 bytes
Desc: fix_warnings_for_datetime.patch
URL: <http://alioth-lists.debian.net/pipermail/pkg-mailman-hackers/attachments/20250429/a09b1cd5/attachment.obj>


More information about the Pkg-mailman-hackers mailing list