Skip to content

Commit

Permalink
Fix Paste.Expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
iliafrenkel committed Aug 2, 2021
1 parent cc5bcf2 commit 27dba5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func (p *Paste) Expiration() string {
Hour = 60 * Minute
Day = 24 * Hour
Week = 7 * Day
Month = 30 * Day
Year = 12 * Month
Year = 365 * Day
Month = Year / 12
)

diff := time.Until(p.Expires) / time.Second
Expand Down

0 comments on commit 27dba5b

Please sign in to comment.