Fixes to the console and date lib