class G5Updatable::SyncsController < G5Updatable::BaseUpdatableController def index timestamp = G5Updatable::Location.maximum(:updated_at) render json: {updated_at: formatted_timestamp(timestamp)} end private def formatted_timestamp(timestamp) timestamp.in_time_zone.strftime("%I:%M%P on %B %e, %Y") if timestamp end end