Add `getTimestamp` so timestamp will always have a valid value.