def adjust_timestamp(ts, offset, here=utcoffset):
 return (ts - ((offset - here()) * 3600))

def adjust_timestamp ( ts , offset , here = utcoffset ) : return ( ts - ( ( offset - here ( ) ) * 3600 ) )
adjust timestamp based on provided utcoffset .