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

A non well formed numeric value encountered #237

Open
RyanNutt opened this issue Nov 24, 2019 · 0 comments
Open

A non well formed numeric value encountered #237

RyanNutt opened this issue Nov 24, 2019 · 0 comments

Comments

@RyanNutt
Copy link

I'm getting an exception A non well formed numeric value encountered when trying to save an updated answer.

Looks like it's coming from this line in inc/Handle.php (line 181 in master).

$this->update_modified_date( $question_id , current_time( 'sql', 0 ), current_time( 'sql', 1 ) );

Instead of sql, shouldn't it be timestamp? It looks like current_time only accepts timestamp or mysql as an option, otherwise it falls back to treating that string as a date formatting string. If it's mysql it tries to format the date twice. I switched it to timestamp and it appears to be working correctly.

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

1 participant