Repository navigation
list: daty bez godziny i bez strefy w czasie polskim (Europe/Warsaw) - #36
Merged
Merged
Conversation
….1.5” Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kprzybys
added a commit
that referenced
this pull request
Nov 29, 2026
…robione w 0.1.5” Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zakres zmian
Realizacja pozycji z
docs/ROADMAP.md(Priorytet wysoki): daty bez godziny i bez strefy wksef listinterpretowane w czasie polskim (Europe/Warsaw), niezależnie od strefy maszyny (np. cron na serwerze w UTC).src/KsefCli/KsefTime.cs: wspólna klasa czasu polskiego (KsefTime.PolandzEurope/Warsawi powrotem doTimeZoneInfo.Localprzy braku strefy w systemie,Now(),Today(),ToDateTimeOffset(wallTime, zone)). Dla godzin nieistniejących (wiosenna zmiana czasu) i podwójnych (jesienna zmiana czasu) zachowanie zgodne zTimeZoneInfo.GetUtcOffset— bez wyjątku, z przesunięciem czasu standardowego (+01:00).src/KsefCli/Commands/SendCommand.cs: korzysta zKsefTime.Today()zamiast prywatnej metodyPolandToday()(zachowanie bez zmian).src/KsefCli/Commands/ListCommand.cs:ParseDate(value, endOfDay, zone = null): sama dataRRRR-MM-DDto cały dzień (00:00:00–23:59:59.9999999) w czasie polskim (+01:00zimą,+02:00latem); ISO 8601 bez przesunięcia także w czasie polskim; ISO 8601 z jawnym przesunięciem alboZ— bez zmian.--from(1. dzień bieżącego miesiąca) i--to(„teraz”) liczone przezKsefTime.Now().--fromi--to.tests/KsefCli.Tests/InvoiceQueryTests.cs:ParseDatedla dnia zimowego (2026-01-15), letniego (2026-07-15,2026-10-01) oraz dni zmiany czasu (2026-03-29,2026-10-25) przyendOfDay: false/true.2026-03-29T02:30i podwójna2026-10-25T02:30), ISO 8601 z jawnym przesunięciem/Z, parametruzoneorazKsefTime.ToDateTimeOffset.FakeKsefzTZ=UTCiTZ=America/New_YorkweryfikującedateRange.fromidateRange.towysyłane doPOST invoices/query/metadata.docs/COMMANDS.md,docs/ROADMAP.md: dopisek przylisto czasie polskim oraz przeniesienie pozycji do sekcjiZrobione w 0.1.5.Wyniki testów i weryfikacji
dotnet build ksef-cli.slnx -c Release: 0 błędów, 0 ostrzeżeń w projektachsrc/itests/(TreatWarningsAsErrors=true)dotnet format whitespace --folder --exclude src/Ksef.Fa3/Generated external --verify-no-changes: OK (0 zmian)TZ=UTC dotnet test --solution ksef-cli.slnx -c Release --no-build: 266 passed, 0 failed, 37 skipped (E2E)TZ=America/New_York dotnet test --project tests/KsefCli.Tests -c Release --no-build -- --filter-class KsefCli.Tests.ListFormatTests: 44 passed, 0 failedTZ=Europe/Warsaw dotnet test --project tests/KsefCli.Tests -c Release --no-build -- --filter-class KsefCli.Tests.ListFormatTests: 44 passed, 0 failedmake aot+scripts/check-aot-warnings.sh: OK (0 nowych ostrzeżeń Native AOT)TZ=UTC KSEF_BIN=dist/aot/ksef dotnet test --project tests/KsefCli.Tests -c Release --no-build -- --filter-class KsefCli.Tests.ListFormatTests: 44 passed, 0 failed