Description

NowFunc returns current time, this function is exported in order to be able to give the flexibility to the developer to customize it according to their needs, e.g:

gorm.NowFunc = func() time.Time {
  return time.Now().UTC()
}

NowFunc is referenced in 6 repositories

github.com/jinzhu/gorm github.com/wader/gormstore github.com/jesand/hicluster

...