From 866cb11f50af17e31324a187db6fa125b50d90a9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 8 Sep 2014 11:41:18 +0000 Subject: [PATCH] fix IDE warning --- etemplate/js/et2_widget_date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index df73856eb8..273f9055d0 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -784,7 +784,7 @@ var et2_date_ro = et2_valueWidget.extend([et2_IDetachedDOM], 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}))/)) { this.date = new Date(_value); - this.date = new Date(this.date.valueOf() + (this.date.getTimezoneOffset()*60*1000)) + this.date = new Date(this.date.valueOf() + (this.date.getTimezoneOffset()*60*1000)); } else if(typeof _value == 'string' && isNaN(_value)) {