Fix apply_year_directive

Using the Y 2014 syntax works fine, but using
apply year 2014 resulted in the following error:
Error: Year is out of valid range: 1400..10000
since part of the given year string was chopped off.
Merge pull request #242 from afh/pull/year

Fix apply_year_directive