public/js/documentarray.js
function getOffset(offset) {

            var symbol = offset.charAt(0);
            var time = offset.substring(1).split(':');
            var hours = Number.parseInt(time[0], 10) * 60;
            var minutes = Number.parseInt(time[1], 10);
            var total = Number.parseInt(symbol + (hours + minutes));

            return total;

        }
function getOffset(offset) {

            var symbol = offset.charAt(0);
            var time = offset.substring(1).split(':');
            var hours = Number.parseInt(time[0], 10) * 60;
            var minutes = Number.parseInt(time[1], 10);
            var total = Number.parseInt(symbol + (hours + minutes));

            return total;

        }
function getOffset ( offset ) { var symbol = offset . charAt ( 0 ) ; var time = offset . substring ( 1 ) . split ( ':' ) ; var hours = Number . parseInt ( time [ 0 ] , 10 ) * 60 ; var minutes = Number . parseInt ( time [ 1 ] , 10 ) ; var total = Number . parseInt ( symbol + ( hours + minutes ) ) ; return total ; }
Get the offsets as an integer
Get the offsets as an integer