Update code sample for Go 1+

`time.LocalTime()` no longer exists. I've updated that line to the current syntax.