Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to invoke a method ("format") on a string variable ("23-03-2019"). #4041

Closed
MarcelWeidum opened this issue Mar 25, 2019 · 1 comment

Comments

@MarcelWeidum
Copy link
Contributor

Description

Make a form with an 'editableTableField' and a type date and try to load a date.

Steps to reproduce

  1. Make a form with an 'editableTableField'
  2. And a type 'date' and try to load a date

Additional info

  • Craft version: 3.1.19
  • PHP version: 7.2.15
  • Database driver & version: MySQL 5.5.5
  • Plugins & versions: -
@brandonkelly
Copy link
Member

Editable table inputs and Date inputs were expecting a DateTime object, but they will start defending against a raw timestamp string being passed in as of the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants