Use local-time to encode timestamp