Fix case sensitivity for grain_to_date
and offset_to_grain
#370
+130
−38
grain_to_date
and offset_to_grain
#370