fixed firefox date bug