Skip to content

Commit

Permalink
서버가 GMT+9에 설치되어 있다고 가정
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0629 committed Aug 8, 2013
1 parent 9df8d35 commit a37099c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/js/sirc.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var datetime_format = function(datetime) {

var datetime_now = function() {
var d = new Date();
d = new Date(d.getTime() + (d.getTimezoneOffset() + 9 * 60) * 60 * 1000);
return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
};

Expand Down

0 comments on commit a37099c

Please sign in to comment.