fixes date generation for #15
Improves error log for #15