From 804dd67b4a51a07aca7860fc5674f803c23e6283 Mon Sep 17 00:00:00 2001 From: tjkoury Date: Mon, 19 May 2014 16:40:37 -0400 Subject: [PATCH] Fixed spinner issue in inject node with non-hardcoded offset --- nodes/core/core/20-inject.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodes/core/core/20-inject.html b/nodes/core/core/20-inject.html index 276e5fea4..c48e2e368 100644 --- a/nodes/core/core/20-inject.html +++ b/nodes/core/core/20-inject.html @@ -149,8 +149,9 @@ if ( Number( value ) == value ) { return Number( value ); } - var p = value.split(":"); - return ((Number(p[0])*60)+Number(p[1])+300)*60*1000; + var p = value.split(":"); + var offset = new Date().getTimezoneOffset(); + return (((Number(p[0])+1)*60)+Number(p[1])+offset)*60*1000; } return value; },