File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ def configure(settings=None):
245
245
jglobals = config .get_settings ().setdefault ("jinja2.globals" , {})
246
246
jglobals .setdefault ("gravatar" , "warehouse.utils.gravatar:gravatar" )
247
247
jglobals .setdefault ("esi_include" , "warehouse.cache.origin:esi_include" )
248
+ jglobals .setdefault ("now" , "warehouse.utils:now" )
248
249
249
250
# We'll store all of our templates in one location, warehouse/templates
250
251
# so we'll go ahead and add that to the Jinja2 search path.
Original file line number Diff line number Diff line change 108
108
109
109
< div {{ l20n( "developedByAndCopyright") }}>
110
110
< p > Developed and maintained by the Python community, for the Python community.</ p >
111
- < p > Copyright © 1990-2015, Python Software Foundation. < a href ="# "> Legal Statements</ a > </ p >
111
+ < p > © {{ now()|format_date('yyyy') }} Python Software Foundation. < a href ="# "> Legal Statements</ a > </ p >
112
112
</ div >
113
113
</ footer >
114
114
{% include "warehouse:templates/includes/sponsors.html" %}
Original file line number Diff line number Diff line change 9
9
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
10
# See the License for the specific language governing permissions and
11
11
# limitations under the License.
12
+
13
+ import datetime
14
+
15
+
16
+ def now ():
17
+ return datetime .datetime .utcnow ()
You can’t perform that action at this time.
0 commit comments