# HG changeset patch # User Brian Neal # Date 1515348024 21600 # Node ID c855a88f9d7889818e332d98a4a4398b4bec0151 # Parent 41f530c805174efbec959375a9b8de758b3159b7# Parent b213e4b333bb1feece054832c4066dfafa3fca1a Merge mainline into V3 dev branch diff -r 41f530c80517 -r c855a88f9d78 forums/latest.py --- a/forums/latest.py Sun Aug 27 17:05:08 2017 -0500 +++ b/forums/latest.py Sun Jan 07 12:00:24 2018 -0600 @@ -55,8 +55,10 @@ import logging import time +from django.conf import settings from django.dispatch import receiver from django.template.loader import render_to_string +import pytz import redis from forums.signals import post_content_update, topic_content_update @@ -72,6 +74,8 @@ # This controls how many updated topics we track MAX_UPDATED_TOPICS = 50 +SERVER_TZ = pytz.timezone(settings.TIME_ZONE) + # Redis key names: POST_COUNT_KEY = "forums:public_post_count" TOPIC_COUNT_KEY = "forums:public_topic_count" @@ -292,7 +296,9 @@ post = json.loads(raw_post) # fix up the pubdate; turn it back into a datetime object - post['pubdate'] = datetime.datetime.fromtimestamp(post['pubdate']) + pubdate = datetime.datetime.utcfromtimestamp(post['pubdate']) + pubdate.replace(tzinfo=SERVER_TZ) + post['pubdate'] = pubdate posts.append(post) @@ -474,7 +480,7 @@ 'title': post.topic.name, 'content': content, 'author': post.user.username, - 'pubdate': int(time.mktime(post.creation_date.timetuple())), + 'pubdate': int(time.mktime(post.creation_date.utctimetuple())), 'forum_name': post.topic.forum.name, 'url': post.get_absolute_url() } diff -r 41f530c80517 -r c855a88f9d78 sg101/templates/base.html --- a/sg101/templates/base.html Sun Aug 27 17:05:08 2017 -0500 +++ b/sg101/templates/base.html Sun Jan 07 12:00:24 2018 -0600 @@ -94,8 +94,8 @@
- SG101 2006-2017 + SG101 Banner
{% cache 3600 countdown_v2 %} {% countdown_events %} @@ -116,7 +116,7 @@ NESMA
  • HangNine
  • -
  • +
  • NSSR
  • Fiberglass Jungle
  • @@ -158,7 +158,7 @@ Colophon

    - SurfGuitar101.com © 2004 - 2017 by Brian Neal. + SurfGuitar101.com © 2004 - 2018 by Brian Neal. All comments and user contributed articles are property of the posters.

    Thanks to all the surf bands, past and present. And thanks to all the fans who care about and keep surf diff -r 41f530c80517 -r c855a88f9d78 sg101/templates/donations/index.html --- a/sg101/templates/donations/index.html Sun Aug 27 17:05:08 2017 -0500 +++ b/sg101/templates/donations/index.html Sun Jan 07 12:00:24 2018 -0600 @@ -23,24 +23,11 @@

    Donation Form -

    Please select an amount:

    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • - -
      - $ - -
      -
    • -
    +

    Please enter an amount:

    +
    + $ + +
    {% if user.is_authenticated %}

    You are currently logged in. Would you like your site username listed with your donation?

    @@ -48,7 +35,8 @@
  • {% else %} -

    You are not currently logged in. Please log in +

    You are not currently logged in. + Please log in if you would like your site username listed with your donation. Otherwise you can have your actual name (from Paypal) listed, or you can be listed as {{ anonymous }}.

      diff -r 41f530c80517 -r c855a88f9d78 sg101/templates/v3/base.html --- a/sg101/templates/v3/base.html Sun Aug 27 17:05:08 2017 -0500 +++ b/sg101/templates/v3/base.html Sun Jan 07 12:00:24 2018 -0600 @@ -70,8 +70,8 @@ SG101 logo
    - SG101 2006-2017 + SG101 Banner
    @@ -97,8 +97,8 @@
  • - SG101 2006-2017 + SG101 Banner
  • @@ -223,7 +223,7 @@ NESMA
  • HangNine
  • -
  • +
  • NSSR
  • Fiberglass Jungle
  • @@ -279,7 +279,7 @@

    - SurfGuitar101.com © 2004 - 2017 by Brian Neal. All comments and user + SurfGuitar101.com © 2004 - 2018 by Brian Neal. All comments and user contributed articles are property of the posters.

    diff -r 41f530c80517 -r c855a88f9d78 static/images/sg101-celebrating.jpg Binary file static/images/sg101-celebrating.jpg has changed