Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

formatting date

  • Loading branch information...
commit 48750746f461b56d8da83eaee2939003b8ef7148 1 parent c353dc5
Jonthan Moss authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 amity/models.py
View
4 amity/models.py
@@ -22,7 +22,7 @@ def on_user_login(sender, user, **kwargs):
'first_name': user.first_name,
'last_name': user.last_name,
'email': user.email,
- 'date_joined': user.date_joined
+ 'date_joined': user.date_joined.isoformat()
}
event = Event(values)
EMITTER.emit('event.user.login', event)
@@ -34,7 +34,7 @@ def on_user_logout(sender, user, **kwargs):
'first_name': user.first_name,
'last_name': user.last_name,
'email': user.email,
- 'date_joined': user.date_joined
+ 'date_joined': user.date_joined.isoformat()
}
event = Event(values)
EMITTER.emit('event.user.logout', event)
Please sign in to comment.
Something went wrong with that request. Please try again.