Skip to content

A non well formed numeric value encountered #237

@RyanNutt

Description

@RyanNutt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions