Fixes date translation in themes.

Fixes #397