Date functions modified to use long casts (iOS 7/Xcode 5 changes)