Skip to content

fix: format pre-epoch Xero dates - #22

Open
ryanduguid wants to merge 1 commit into
XeroAPI:mainfrom
ryanduguid:fix/dotnet-date-formatting
Open

fix: format pre-epoch Xero dates#22
ryanduguid wants to merge 1 commit into
XeroAPI:mainfrom
ryanduguid:fix/dotnet-date-formatting

Conversation

@ryanduguid

Copy link
Copy Markdown

Summary

  • support negative Unix-millisecond values in Xero's /Date(...)/ strings
  • accept an optional numeric UTC offset suffix
  • add a regression test for a pre-1970 date

The prior formatter only matched unsigned timestamps followed by a positive offset, leaving valid pre-epoch Xero dates unformatted.

Testing

  • npm test (131 passed)
  • npm run build

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