Fixed: Date formatting and id generation

Seconds not included