change utc to utcnow
authorymh <ymh.work@gmail.com>
Thu, 29 Sep 2011 12:43:52 +0200
changeset 187 a59dd2aed213
parent 151 ad9041b61da0
child 188 74bad93d3cb7
change utc to utcnow
.settings/org.eclipse.core.resources.prefs
.settings/org.eclipse.php.core.prefs
src/ldt/ldt/user/models.py
--- a/.settings/org.eclipse.core.resources.prefs	Fri Aug 19 17:15:21 2011 +0200
+++ b/.settings/org.eclipse.core.resources.prefs	Thu Sep 29 12:43:52 2011 +0200
@@ -1,6 +1,8 @@
-#Thu Aug 18 16:43:26 CEST 2011
+#Thu Aug 25 11:05:36 CEST 2011
 eclipse.preferences.version=1
+encoding//src/ldt/ldt/core/migrations/0001_initial.py=utf-8
 encoding//src/ldt/ldt/core/migrations/0002_auto__del_owner.py=utf-8
+encoding//src/ldt/ldt/ldt_utils/migrations/0001_initial.py=utf-8
 encoding//src/ldt/ldt/ldt_utils/migrations/0002_auto__add_field_media_mimetype_field__chg_field_media_external_src_url.py=utf-8
 encoding//src/ldt/ldt/ldt_utils/migrations/0003_auto__chg_field_project_owner.py=utf-8
 encoding//src/ldt/ldt/user/migrations/0002_auto__del_irigroup.py=utf-8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.settings/org.eclipse.php.core.prefs	Thu Sep 29 12:43:52 2011 +0200
@@ -0,0 +1,3 @@
+#Sat Sep 24 15:42:33 CEST 2011
+eclipse.preferences.version=1
+include_path=
--- a/src/ldt/ldt/user/models.py	Fri Aug 19 17:15:21 2011 +0200
+++ b/src/ldt/ldt/user/models.py	Thu Sep 29 12:43:52 2011 +0200
@@ -17,7 +17,7 @@
 class ldtManager(UserManager):
     def create_user(self, username, email, password=None):
         "Creates and saves a User with the given username, e-mail and password."
-        now = datetime.datetime.now()
+        now = datetime.datetime.utcnow()
         user = ldt(None, username, '', '', email.strip().lower(), 'placeholder', False, True, False, now, now)
         if password:
             user.set_password(password)