mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
SO Index: Adding day to standing order dates
This commit is contained in:
@@ -13,10 +13,10 @@ class Api::Admin::IndexStandingOrderSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def begins_on
|
||||
object.begins_at.strftime('%b %d, %Y')
|
||||
object.begins_at.strftime('%a, %b %d, %Y')
|
||||
end
|
||||
|
||||
def ends_on
|
||||
object.ends_at.andand.strftime('%b %d, %Y') || I18n.t(:ongoing)
|
||||
object.ends_at.andand.strftime('%a, %b %d, %Y') || I18n.t(:ongoing)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user