datetime: use normalization instead of redundant code
__FILE__ deprectated
possible typo