Fixed bug in localtime.today in view