diff --git a/CHANGELOG.md b/CHANGELOG.md index b18fed8f1..15a6f248e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,8 +11,12 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Improve provider `Apply()` errors, add `ErrNotApplied` when attempting to rollback a migration that has not been previously applied. (#660) - Add `WithDisableGlobalRegistry` option to `NewProvider` to disable the global registry. (#645) -- Add `-timeout` flag to CLI to set the maximum allowed duration for queries to run. Default is - remains no timeout. +- Add `-timeout` flag to CLI to set the maximum allowed duration for queries to run. Default remains + no timeout. (#627) + +⚠️ Potential Breaking Change ⚠️ + +- Update `goose create` to use UTC time instead of local time. (#242) ## [v3.16.0] - 2023-11-12 diff --git a/create.go b/create.go index db47a2e4c..c1e8400d4 100644 --- a/create.go +++ b/create.go @@ -26,7 +26,7 @@ func SetSequential(s bool) { // Create writes a new blank migration file. func CreateWithTemplate(db *sql.DB, dir string, tmpl *template.Template, name, migrationType string) error { - version := time.Now().Format(timestampFormat) + version := time.Now().UTC().Format(timestampFormat) if sequential { // always use DirFS here because it's modifying operation