Skip to content

Commit

Permalink
fix: use UTC for migration timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
gjarmstrong committed Nov 14, 2023
1 parent 2ddfe7f commit 5fc0ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cli/generator/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var migrationCmd = &cobra.Command{
Short: "Generates a migration file",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
t := time.Now()
t := time.Now().UTC()
timestamp := t.Format("20060102150405")
baseFileName := path.Join(helpers.FindRootPath(), "./db/migrations/"+timestamp+"_"+args[0])

Expand Down

0 comments on commit 5fc0ab6

Please sign in to comment.