Commits

Luke Plant committed 119827f

Used 2011 rather than 2001 as start date for email verification timestamp

Comments (0)

Files changed (1)

cciw/bookings/email.py

         return True
 
     def _make_token_with_timestamp(self, account, timestamp):
-        # timestamp is number of days since 2001-1-1.  Converted to
-        # base 36, this gives us a 3 digit string until about 2121
+        # timestamp is number of days since 2011-1-1.  Converted to
+        # base 36, this gives us a 3 digit string until about 2131
         ts_b36 = int_to_base36(timestamp)
 
         key_salt = "cciw.bookings.EmailVerifyTokenGenerator"
         return "%s-%s" % (ts_b36, hash)
 
     def _num_days(self, dt):
-        return (dt - date(2001,1,1)).days
+        return (dt - date(2011,1,1)).days
 
     def _today(self):
         # Used for mocking in tests
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.