Mircea - tw.com team #date-bug: Renamed the date variable

The date variable was used as "d" rather than "date" causing the code to fail to show the splash page on 5th of June. Will try to add some kind of tests in a future commit.