You could make either method more secure by hashing the encoded time and displaying that.
Make sure to use a cryprographically-secure hash function and a strong salt.