Skip to content

Development#104

Merged
sondresjolyst merged 4 commits intomainfrom
development
Apr 19, 2026
Merged

Development#104
sondresjolyst merged 4 commits intomainfrom
development

Conversation

@sondresjolyst
Copy link
Copy Markdown
Owner

No description provided.

sondresjolyst and others added 4 commits April 19, 2026 17:56
* fix: automation admin role check

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…t duplicates (#103)

- ParseDeliveryDate() now uses DateTime.SpecifyKind+ParseExact for date-only strings
  so DAILY/MONTHLY delivery dates are always stored as UTC midnight regardless of
  server timezone (fixes duplicate rows when running on UTC+2 vs UTC Docker)
- Remove redundant .ToUniversalTime() calls in ElectricityPriceFetchService
- Migration: deduplicate and normalize existing DAILY/MONTHLY rows (DATE_TRUNC)
- Migration: re-run normalization with +12h rounding for Norway-local UTC offsets
- Migration: delete remaining bad-date MONTHLY rows (day != 1) and all DAILY rows
  so the service can repopulate them cleanly on next startup
@sondresjolyst sondresjolyst merged commit ec33d76 into main Apr 19, 2026
6 checks passed
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