2020-02-17 07:26:20 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Api
|
|
|
|
module V1
|
|
|
|
class RepositoryTimeValueSerializer < ActiveModel::Serializer
|
2021-06-15 23:12:55 +08:00
|
|
|
attribute :time
|
|
|
|
|
|
|
|
def time
|
|
|
|
object.data.strftime('%H:%M:%S.%3NZ')
|
|
|
|
end
|
2020-02-17 07:26:20 +08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|