Fixed two bugs in the string parsing logic of dt:
* date strings of the form 5/27/1997 failed to save the year during parsing if a time string was also present. * european-style dates like 27/5/1997 were raising parsing errors - this was originally intentional as the original DateTime seemed to indicate that possibly ambiguous strings should fail. However, the existing c DateTime module does accept this format, so now this version does too for compatibility. NOTE THAT YOU ARE ALMOST CERTAIN TO HAVE PROBLEMS WITH THIS FORMAT AND SHOULD USE IT FOR COMPATIBILITY ONLY! Date strings with a day less than 13 will give incorrect results due to the abiguity.
Showing
Please register or sign in to comment