Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

fixing contribution stmt PDF filename #5999

Merged
merged 1 commit into from
Dec 4, 2016
Merged

fixing contribution stmt PDF filename #5999

merged 1 commit into from
Dec 4, 2016

Conversation

willy-b
Copy link
Contributor

@willy-b willy-b commented Dec 3, 2016

Fixes issue #5974, where contribution PDFs are broken by a change in Date#toLocaleDateString behavior that has appeared with chromium54 changes.

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Test Plan:

  • run updated test
    npm run test -- --grep="addExportFilenamePrefixToTransactions"

- Date#toLocaleDateString behavior changed in 0.13.0 (specifically in pre-packaged build? chromium54?)
  see #5974 (comment)

- switched to moment date formatting library (we use it elsewhere) for filename
  per comment #5974 (comment)

- updated the test in test/unit/app/common/lib/ledgerExportUtilTest.js

fixes #5974
@bsclifton bsclifton added this to the 0.13.0 milestone Dec 3, 2016
@bsclifton bsclifton self-assigned this Dec 3, 2016
@bsclifton
Copy link
Member

Tested this out locally, it's working great! Thanks for updating this (and bigtime thanks for including / updating unit tests 😄 )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants