migrating-ravens / RavenMigrations

A small migrations framework to help you manage your RavenDB Instance.
MIT License
53 stars 24 forks source link

Use 24h format for hours in the timestamp example #7

Closed brunomlopes closed 10 years ago

brunomlopes commented 10 years ago

This probably wouldn't matter much, but using 12h format would mean that a migration done at 10am would come after a migration done at 2pm

khalidabuhakmeh commented 10 years ago

Great catch, and you are right. Most teams work in the same hours and same timezone so it probably wouldn't have popped up. You should always consider your team dynamic and potentially even choose a timezone that works for everyone. Thanks for you contribution.

brunomlopes commented 10 years ago

Didn't even think about timezones.

To create the timestamp I've used the following powershell on the package manager console:

([DateTime]::UtcNow).ToString("yyyyMMddHHmmss")

Makes for very simple timestamp generation.