customize date formats
This commit is contained in:
@@ -138,6 +138,7 @@ func MigrateClarkson(connectionString string) (bool, error) {
|
||||
DistanceUnit: distanceUnitMap[v.DistanceUnit],
|
||||
Role: role,
|
||||
Name: v.Username,
|
||||
DateFormat: "MM/dd/yyyy",
|
||||
}
|
||||
user.SetPassword("hammond")
|
||||
err = CreateUser(&user)
|
||||
|
||||
@@ -14,6 +14,7 @@ type User struct {
|
||||
Password string `json:"-"`
|
||||
Currency string `json:"currency"`
|
||||
DistanceUnit DistanceUnit `json:"distanceUnit"`
|
||||
DateFormat string `json:"dateFormat"`
|
||||
Role Role `json:"role"`
|
||||
Name string `json:"name"`
|
||||
Vehicles []Vehicle `gorm:"many2many:user_vehicles;" json:"vehicles"`
|
||||
|
||||
Reference in New Issue
Block a user