Replaced deprecated v8 functions with newer equivalents
Fixed failing tests with timezone independent equivalents