Time.strftime flags should only apply for a single directive. Fixes #731