Merge pull request 'Always use UTC' (#5) from dev into main
This commit was merged in pull request #5.
This commit is contained in:
@@ -30,6 +30,8 @@ func main() {
|
||||
}
|
||||
|
||||
func run(serviceName string, serviceVersion string) error {
|
||||
time.Local, _ = time.LoadLocation("UTC")
|
||||
|
||||
_ = godotenv.Load(".env")
|
||||
setupLogging()
|
||||
|
||||
|
||||
@@ -31,11 +31,9 @@ func (s *UserService) CreateUser(ctx context.Context, email string, name string,
|
||||
if len(email) == 0 {
|
||||
return nil, errors.New("email is required")
|
||||
}
|
||||
|
||||
if len(name) == 0 {
|
||||
return nil, errors.New("name is required")
|
||||
}
|
||||
|
||||
if len(password) == 0 {
|
||||
return nil, errors.New("password is required")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user