Fix date issue on browsers apart from Chrome