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

include current year in PDF statement copyright footer #6880

Merged
merged 2 commits into from
Jan 27, 2017
Merged

Conversation

mrose17
Copy link
Member

@mrose17 mrose17 commented Jan 26, 2017

Auditor: @bsclifton

Fixes #6878

Test Plan:

  1. Generate a PDF receipt
  2. See that the footer says "(c)2016-YYYY ..."

brian - on my system, the PDF has "funny" characters around the date. do you see those as well?
0

@mrose17 mrose17 added this to the 0.13.2 milestone Jan 26, 2017
@@ -328,9 +328,13 @@ class ContributionStatement extends ImmutableComponent {
}

get ContributionStatementPageFooter () {
const l10nDataArgs = {
currentYear: new Date().getFullYear().toString(10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toString's radix is option so doesn't need to be specified and you can even just not convert to a string since it'll be coerced but I'm fine with this. Merging, thanks!

@bbondy
Copy link
Member

bbondy commented Jan 27, 2017

++

@bbondy bbondy merged commit 69e2f6b into master Jan 27, 2017
@bbondy bbondy assigned bbondy and unassigned bsclifton Jan 27, 2017
@luixxiul
Copy link
Contributor

@bbondy Will this be included 0.13.1? If so please reset the milestone as well as #6878, thanks.

@bbondy bbondy modified the milestones: 0.13.1, 0.13.2 Jan 27, 2017
@mrose17 mrose17 deleted the issue-6878 branch January 27, 2017 19:35
@mrose17
Copy link
Member Author

mrose17 commented Jan 27, 2017

@alexwykoff - can you do me a favor? generate a PDF on your system and see if you get the funny characters that i see above (look for the "blurry" image). if not, no worries.

@bbondy - i'd prefer to do an integer, but the problem is that it rendered as 2,107 rather than 2017. and, i agree, the radix 10 parameter is the default...

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.

4 participants