[Vtigercrm-commits] [vtiger development] #5384: JavaScript Calendars are buggy
vtiger development
vtiger-tickets at trac.vtiger.com
Tue Oct 21 10:54:43 EDT 2008
#5384: JavaScript Calendars are buggy
------------------------+---------------------------------------------------
Reporter: elmue.gmx | Owner: developer
Type: defect | Status: new
Priority: minor | Milestone: 5.1.0
Component: vtigercrm | Version: 5.0.4
Resolution: | Keywords: Calendar
------------------------+---------------------------------------------------
Comment (by elmue.gmx):
Hello
I fixed one of the two Java Script calendars now.
First I checked the latest version of the JavaScript calendar which is
1.0.
http://sourceforge.net/project/downloading.php?groupname=jscalendar&filename=jscalendar-1.0.zip&use_mirror=ufpr
But this still has the same bug.
Incredible that this calendar exists since 2002 and nobody fixed this bug!
The solution is simple:
File: htdocs\vtiger\jscalendar\calendar.js
Line: 1048
Old code:
{{{
Calendar.prototype._init = function (firstDayOfWeek, date) {
var today = new Date();
this.table.style.visibility = "hidden";
}}}
New code:
{{{
Calendar.prototype._init = function (firstDayOfWeek, date) {
date.setHours(12); // Bugfix: Required for daylight saving!!!
var today = new Date();
this.table.style.visibility = "hidden";
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5384#comment:1>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list