Skip to content

Commit

Permalink
fill in the correct year in the copyright, phetsims/brand#31
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Apr 20, 2017
1 parent bab4914 commit 713d722
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/AboutDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 713d722

Please sign in to comment.