Fixing date to actually work