Skip to content

Use blog timezone for content lookahead window#799

Merged
poppastring merged 1 commit into
mainfrom
fix/content-lookahead-timezone
Apr 11, 2026
Merged

Use blog timezone for content lookahead window#799
poppastring merged 1 commit into
mainfrom
fix/content-lookahead-timezone

Conversation

@poppastring
Copy link
Copy Markdown
Owner

Use blog timezone for content lookahead window

GetContentLookAhead was anchored to DateTime.UtcNow, which shifts the
lookahead window relative to the blog owner's local time. For example,
at 8 PM EST (which is already the next day in UTC), the window starts
a day ahead of what the blog owner expects.

Now uses SystemClock.Instance.GetCurrentInstant().InZone(tz) to anchor
the lookahead to the blog's configured timezone.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

GetContentLookAhead was anchored to DateTime.UtcNow, which shifts the
lookahead window relative to the blog owner's local time. For example,
at 8 PM EST (which is already the next day in UTC), the window starts
a day ahead of what the blog owner expects.

Now uses SystemClock.Instance.GetCurrentInstant().InZone(tz) to anchor
the lookahead to the blog's configured timezone.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@poppastring poppastring merged commit 028508e into main Apr 11, 2026
3 checks passed
@poppastring poppastring deleted the fix/content-lookahead-timezone branch April 11, 2026 20:58
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