Fixing Date() for mobile.