use ruby date not date in module