Skip to content

Commit

Permalink
Correct to since date not updated date
Browse files Browse the repository at this point in the history
Post OpenUserJS#1292 and applies to OpenUserJS#389
  • Loading branch information
Martii committed Nov 30, 2017
1 parent 9930181 commit 99f96af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ exports.editScript = function (aReq, aRes, aNext) {
copyrightPrimary = copyrights[copyrights.length - 1];
script.copyrightPrimary = copyrightPrimary;
} else {
sinceDate = new Date(script.updatedISOFormat);
sinceDate = new Date(script._sinceISOFormat);
options.script.copyrightPrimary = sinceDate.getFullYear() + ', ' + authedUser.name
+ ' (https://openuserjs.org' + authedUser.userPageUrl + ')';
}
Expand Down

0 comments on commit 99f96af

Please sign in to comment.