Fix createFromFormat false with format c

Due to an error in php which returns false when using createFromFormat with format c probably related to the issue https://bugs.php.net/bug.php?id=51950 when the format is c the string is passed into the constructor.