Fix getting reading by timestamp