regex - Javascript "Invalid Date" error in Safari -


I'm trying to debug one of my scripts and I can not find my head about what's wrong with it Can be: <(\ D \ d) (\ d \ d) (\ d \ d) (\ "\") (\ d \ d) d \ d) (\ d \ d) $ /, '$ 4 : $ 5: $ 6 $ 2 / $ 3 / $ 1 ')); Warning (date);

It works in Firefox, IE, Chrome but safari gives me an "invalid date" error Any ideas?

time and date are in the wrong order (Just for Safari I think :):

I tested it in Safari and it works (I just changed the date and time position in the last string):

 (\ D \ d) (\ d \ d) (\ d \ d) (\ D \ d) $ /, '$ 2 / $ 3 / $ 1 $ 4: $ 5: $ 6')); Warning (date);  

It will also work in other browsers as it is expected.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -