lib/yt/models/timestamp.rb
module Yt
module Models
# @private
# Extend Time to have .to_json return the format needed to submit
# timestamp to YouTube API.
# Only needed while we support ActiveSupport 3.
class Timestamp < Time
def as_json(options = nil)
utc.iso8601(3)
end
end
end
end