Fixed localtime bug in sample page.