Fix previous commit
Use createdAt instead of time