mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 10:36:22 +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:
parent
7a874f5a27
commit
b9ec8a6756
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,14 @@ class MetadataDate < MetadataTemplate
|
||||||
end
|
end
|
||||||
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.
|
# Devuelve una fecha, si no hay ninguna es la fecha de hoy.
|
||||||
#
|
#
|
||||||
# @return [Date]
|
# @return [Date]
|
||||||
|
|
Loading…
Reference in a new issue