Description:
[web] more use of utc time
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@248 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r120:a805b8fa46cc - - 1 file changed: 2 inserted, 2 deleted
@@ -39,7 +39,7 | |||||
|
39 | end |
|
39 | end |
|
40 |
|
40 | ||
|
41 | def format_short_time(time) |
|
41 | def format_short_time(time) |
|
42 | - now = Time.now |
|
42 | + now = Time.now.gmtime |
|
43 | st = '' |
|
43 | st = '' |
|
44 | if (time.yday != now.yday) or |
|
44 | if (time.yday != now.yday) or |
|
45 | (time.year != now.year) |
|
45 | (time.year != now.year) |
@@ -64,7 +64,7 | |||||
|
64 | <tr> |
|
64 | <tr> |
|
65 | <td class="left-col"> |
|
65 | <td class="left-col"> |
|
66 | #{user.full_name}<br/> |
|
66 | #{user.full_name}<br/> |
|
67 | - Current time is #{format_short_time(Time.new)}<br/> |
|
67 | + Current time is #{format_short_time(Time.new.gmtime)} UTC<br/> |
|
68 | </td> |
|
68 | </td> |
|
69 | <td class="right-col">APIO'08</td> |
|
69 | <td class="right-col">APIO'08</td> |
|
70 | </tr> |
|
70 | </tr> |
You need to be logged in to leave comments.
Login now