Skip to content

docs(filings): acceptance_datetime from get_filings() is not reliably UTC (#1501) - #1502

Merged
dgunning merged 1 commit into
mainfrom
docs/1501-acceptance-datetime-source
Oct 8, 2026
Merged

dgunning merged 1 commit into
mainfrom
docs/1501-acceptance-datetime-source

Conversation

@dgunning

@dgunning dgunning commented Oct 8, 2026

Copy link
Copy Markdown
Owner

What this changes

EntityFiling.acceptance_datetime, the value on every filing from Company(...).get_filings(), comes from acceptanceDateTime in SEC's submissions JSON. SEC labels that field UTC, but for some filers it is hours off. Apple's 10-Q 0000320193-26-000020 was accepted at 06:01:02 ET (10:01:02 UTC). On 2026-10-08 it read 2026-07-31 14:01:02+00:00. I confirmed that live today, and filing.header.acceptance_datetime returned 2026-07-31 06:01:02. The offset varies by filer and by day, so it can't be corrected after the fact.

This PR is the documentation half, for 5.62.0:

  • The EntityFiling class docstring gains an acceptance_datetime entry. It says the value is not reliably UTC and points to filing.header.acceptance_datetime for a precise time, noting the extra request that costs.
  • docs/guides/working-with-filing.md gains the same note under the EntityFiling properties example.

The value itself is unchanged. Fixing it (reading the header, or dropping or renaming the JSON-derived value) changes values users already see, so it's left for 6.0 and tracked in bead edgartools-cewy.

Refs #1501. This doesn't close the issue, because the value fix is still to come.

Verification

  • Live check of both sources for the Apple accession above, on 2026-10-08.
  • assemble_changelog.py --check: 15 fragments ready, and this one is 354 characters.
  • ruff check edgar/entity/filings.py: clean.

🤖 Generated with Claude Code

… UTC (#1501)

EntityFiling.acceptance_datetime comes from acceptanceDateTime in SEC's
submissions JSON, which carries a trailing Z and is parsed as UTC
(edgar/dates.py::parse_acceptance_datetime). SEC does not reliably write
it in UTC: Apple's 10-Q 0000320193-26-000020 was accepted at 06:01:02 ET
(10:01:02 UTC, per the SGML header and SEC's index page) and read
14:01:02 UTC on 2026-10-08. The reporter measured offsets that vary by
filer and by day, so no fixed correction exists.

This is the documentation half for 5.62.0: the class docstring and the
filing guide name the problem and point to filing.header.acceptance_datetime,
which reads the filing's own SGML header. Changing the value itself is a
value change and is left to 6.0 (bead edgartools-cewy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dgunning
dgunning enabled auto-merge (squash) October 8, 2026 20:52
@dgunning
dgunning merged commit 2460109 into main Oct 8, 2026
10 checks passed
@dgunning
dgunning deleted the docs/1501-acceptance-datetime-source branch October 8, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant