Bug 15162 - selftest subunit perl gets UTC time wrong
Summary: selftest subunit perl gets UTC time wrong
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Test infrastructure (show other bugs)
Version: unspecified
Hardware: All All
: P5 minor (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2022-09-02 00:02 UTC by Douglas Bagnall
Modified: 2023-08-22 00:37 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Bagnall 2022-09-02 00:02:48 UTC
I noticed that in st/subunit I have the wrong time in various places:

> testsuite: samba.tests.samba_tool.user_edit(fl2000dc:local)
> progress: push
> time: 2022-09-01 11:55:09.700146Z
> time: 2022-09-01 23:55:09.708647Z
> test: samba.tests.samba_tool.user_edit.create_test_user(fl2000dc:local)

The real UTC time here is 2022-09-01 23:55:09.708647Z. Local time is  2022-09-02 11:55 -- that is a DAY ahead of the time reported by perl.

It is as if perl is double applying the local -> utc conversion, which is -12 hours in this case.

Dumping the environment at this point shows nothing that seems relevant.

I don't know if this actually causes any problems, or whether the perl line can just be removed. We already have timestamps everywhere.
Comment 1 Samba QA Contact 2023-08-22 00:37:06 UTC
This bug was referenced in samba master: