Created a global offset for internal date creation and comparison #342