Fix prettify date function to divide correctly for weeks etc