~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/tutorialservice/__init__.py

  • Committer: mattgiuca
  • Date: 2008-03-07 15:13:07 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:670
tutorialservice: Changed writing to DB's problem_attempt.date.
    Now writes localtime instead of gmtime. (System always uses localtime).
    IMPORTANT: If there was already data in the DB from older revisions, it
        will be wrong!

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
    rec = {}
127
127
    rec['problemid'] = problemid
128
128
    rec['loginid'] = loginid
129
 
    rec['date'] = time.gmtime()
 
129
    rec['date'] = time.localtime()
130
130
    rec['complete'] = test_results['passed']
131
131
    rec['attempt'] = code
132
132