Fix strftime implementation for date formatter