Fixed #18767: Admin's calendar for datetime fields doesn't show right values with russian and some other locales

Solution includes incomplete implementation of strptime. I've included test into commit.