diff --git a/m3u8/discontinuityItem.go b/m3u8/discontinuityItem.go index 2bbac14..f5301b8 100644 --- a/m3u8/discontinuityItem.go +++ b/m3u8/discontinuityItem.go @@ -12,5 +12,5 @@ func NewDiscontinuityItem() (*DiscontinuityItem, error) { } func (di *DiscontinuityItem) String() string { - return fmt.Sprintf("%s\n", DiscontinuityItemTag) + return fmt.Sprintf("%s", DiscontinuityItemTag) } diff --git a/m3u8/timeItem.go b/m3u8/timeItem.go index 6d2ebac..1ee0c41 100644 --- a/m3u8/timeItem.go +++ b/m3u8/timeItem.go @@ -7,7 +7,7 @@ import ( ) const ( - dateTimeFormat = time.RFC3339Nano + dateTimeFormat = "2006-01-02T15:04:05.000+0000" ) // TimeItem represents EXT-X-PROGRAM-DATE-TIME