Author: nathangray
New Revision: 55712
URL: http://svn.stylite.de/viewvc/egroupware?rev=55712&view=rev
Log:
Fix set_min/set_max with a full string timestamp caused a formatting error
Modified:
trunk/egroupware/api/js/etemplate/et2_widget_date.js
— trunk/egroupware/api/js/etemplate/et2_widget_date.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_date.js Mon Apr 11 23:28:10 2016
@@ -362,6 +362,17 @@
}
else
{
-
// Check for full timestamp
-
if(typeof _value == 'string' && _value.match(/(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})(?:\.\d{3})?(?:Z|[+-](\d{2})\:(\d{2}))/))
-
{
-
_value = new Date(_value);
-
// Add timezone offset back in, or formatDate will lose those hours
-
var formatDate = new Date(_value + this.date.getTimezoneOffset() * 60 * 1000);
-
if(this._type == 'date')
-
{
-
_value = jQuery.datepicker.formatDate(this.dateFormat, formatDate);
-
}
-
}
this.input_date.datepicker('option','minDate',_value);
}
}
@@ -405,6 +416,17 @@
}
else
{
-
// Check for full timestamp
-
if(typeof _value == 'string' && _value.match(/(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})(?:\.\d{3})?(?:Z|[+-](\d{2})\:(\d{2}))/))
-
{
-
_value = new Date(_value);
-
// Add timezone offset back in, or formatDate will lose those hours
-
var formatDate = new Date(_value + this.date.getTimezoneOffset() * 60 * 1000);
-
if(this._type == 'date')
-
{
-
_value = jQuery.datepicker.formatDate(this.dateFormat, formatDate);
-
}
-
}
this.input_date.datepicker('option','maxDate',_value);
}
}
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs