Use getlocal instead localtime on devices index