Skip to content

fix(character): use Berlin date for house payments - #795

Open
tobiasehlert wants to merge 2 commits into
mainfrom
character-house-payment-date
Open

tobiasehlert wants to merge 2 commits into
mainfrom
character-house-payment-date

Conversation

@tobiasehlert

Copy link
Copy Markdown
Member

House payment dates are calendar dates displayed in Tibia's Europe/Berlin timezone. Formatting the Fansite API's paidUntil timestamp as a UTC date can therefore produce the previous day around local midnight.

Format house payment dates in Europe/Berlin and add regression coverage for a timestamp that crosses the UTC date boundary. Other timestamp fields remain unchanged.

Tests: go test ./... -count=1

Fixes: #793

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.68%. Comparing base (f9009fa) to head (8c1994a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #795   +/-   ##
=======================================
  Coverage   88.68%   88.68%           
=======================================
  Files          25       25           
  Lines        3173     3173           
=======================================
  Hits         2814     2814           
  Misses        359      359           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

v5: character.houses[].paid is one day earlier than v4 (timezone?)

1 participant