5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 08:26:21 +00:00

fix: date_field necesita strftime en el atributo

closes #17530

closes #17575

closes #17576

closes #17577

closes #17580

closes #17581

closes #17582

closes #17584

closes #17586

closes #17588

closes #17589

closes #17590
This commit is contained in:
f 2024-10-14 13:16:30 -03:00
parent 7a874f5a27
commit b9ec8a6756
No known key found for this signature in database

View file

@ -19,6 +19,14 @@ class MetadataDate < MetadataTemplate
end
end
# Delegar el formato al valor, para uso dentro de date_field()
#
# @param format [String]
# @return [String,nil]
def strftime(format)
value&.strftime(format)
end
# Devuelve una fecha, si no hay ninguna es la fecha de hoy.
#
# @return [Date]