Skip to content

Commit

Permalink
Merge pull request #12 from nrfta/fix/use-utc-for-migration-timestamp
Browse files Browse the repository at this point in the history
fix: use UTC for migration timestamp
  • Loading branch information
josemarluedke committed Nov 14, 2023
2 parents 2ddfe7f + 5fc0ab6 commit 61e8d21
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 61e8d21

Please sign in to comment.