mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
Update time to local, fixes #733
This commit is contained in:
@@ -156,9 +156,9 @@ func main() {
|
||||
var timeparsed time.Duration
|
||||
var err error
|
||||
timeparsed, err = time.ParseDuration(*usage)
|
||||
timeout := time.Now().UTC().Add(timeparsed)
|
||||
timeout := time.Now().Local().Add(timeparsed)
|
||||
cd := &engine.CallDescriptor{
|
||||
TimeStart: time.Now().UTC(),
|
||||
TimeStart: time.Now().Local(),
|
||||
TimeEnd: timeout,
|
||||
DurationIndex: 60 * time.Second,
|
||||
Direction: "*out",
|
||||
|
||||
Reference in New Issue
Block a user