From 713d722b16ef673d05a788904ee3e723c9490751 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Thu, 20 Apr 2017 13:06:18 -0600 Subject: [PATCH] fill in the correct year in the copyright, https://github.com/phetsims/brand/issues/31 --- js/AboutDialog.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/AboutDialog.js b/js/AboutDialog.js index d6614073..9ce41354 100644 --- a/js/AboutDialog.js +++ b/js/AboutDialog.js @@ -125,7 +125,14 @@ define( function( require ) { // Show the brand copyright statement, if it exists if ( Brand.copyright ) { - children.push( new Text( Brand.copyright, { + + var year = phet.chipper.buildTimestamp ? + phet.chipper.buildTimestamp.split( '-' )[0] : // for built versions + new Date().getFullYear(); // in requirejs mode + + var copyright = StringUtils.fillIn( Brand.copyright, { year: year } ); + + children.push( new Text( copyright, { font: new PhetFont( 12 ), maxWidth: MAX_WIDTH, // a11y