Skip to content

Commit

Permalink
Fix a bug that grnci.Now() returns a wrong value.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jul 14, 2016
1 parent afb20ed commit adcff2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions type.go
Expand Up @@ -206,8 +206,7 @@ func (val *Geo) UnmarshalJSON(data []byte) error {

// Now returns the current time.
func Now() Time {
now := time.Now()
return Time((now.Unix() * 1000000) + (now.UnixNano() / 1000))
return Time(time.Now().UnixNano() / 1000)
}

// Unix returns sec and nsec for time.Unix.
Expand Down

0 comments on commit adcff2a

Please sign in to comment.