Skip to content

Commit

Permalink
make copyright render the current year
Browse files Browse the repository at this point in the history
Summary:
As discussed here #5835 now the copyright is computed from `Date`
Closes #5847

Reviewed By: svcscm

Differential Revision: D2918854

Pulled By: androidtrunkagent

fb-gh-sync-id: bd5a56111aec1282857ffd469b91f7476b67221d
shipit-source-id: bd5a56111aec1282857ffd469b91f7476b67221d
  • Loading branch information
lalop authored and facebook-github-bot-9 committed Feb 10, 2016
1 parent 9f01f96 commit de3b942
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/core/Site.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var HeaderLinks = require('HeaderLinks');
var Site = React.createClass({
render: function() {
var title = this.props.title ? this.props.title + ' – ' : '';
var currentYear = (new Date()).getFullYear();
title += 'React Native | A framework for building native apps using React';
return (
<html>
Expand Down Expand Up @@ -53,7 +54,7 @@ var Site = React.createClass({
{this.props.children}

<footer className="wrap">
<div className="center">© 2015 Facebook Inc.</div>
<div className="center">© {currentYear} Facebook Inc.</div>
</footer>
</div>

Expand Down

0 comments on commit de3b942

Please sign in to comment.