Skip to content

Commit

Permalink
Use time.Time for the timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiojr committed May 6, 2019
1 parent 62cdc3b commit 14d0c57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bees/telegrambee/telegrambee.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ func (mod *TelegramBee) Run(eventChan chan bees.Event) {
},
{
Name: "timestamp",
Type: "string",
Value: strconv.FormatInt(time.Now().Unix(), 10),
Type: "time.Time",
Value: time.Now(),
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions bees/telegrambee/telegrambeefactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ func (factory *TelegramBeeFactory) Events() []bees.EventDescriptor {
},
{
Name: "timestamp",
Description: "Timestamp (seconds since epoch)",
Type: "string",
Description: "Timestamp",
Type: "time.Time",
},
},
},
Expand Down

0 comments on commit 14d0c57

Please sign in to comment.