Stupid bugfix
This commit is contained in:
parent
9a0ee47037
commit
c82b5070a6
1 changed files with 2 additions and 2 deletions
|
@ -83,11 +83,11 @@ function rcube_calendar(settings)
|
|||
|
||||
// convert the given Date object into a unix timestamp respecting browser's and user's timezone settings
|
||||
var date2unixtime = function(date) {
|
||||
return date.getTime()/1000 + gmt_offset;
|
||||
return date.getTime()/1000 + gmt_offset * 3600;
|
||||
};
|
||||
|
||||
var fromunixtime = function(ts) {
|
||||
ts -= gmt_offset;
|
||||
ts -= gmt_offset * 3600;
|
||||
return new Date(ts * 1000);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue