Fix for issue #1884 : DateTime#strptime

This commit fixes issue #1884.
I was referring to the following source code.
https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L4139-L4151