[ticket/12556] Some small fixups

Tests passing. Some small errors in code needed fixing.
NEXT STEP:
Add support of date without year

PHPBB3-12556