Skip to content

TIMESTAMP column from MySQL does not include fractional seconds #3506

@mikehayesuk

Description

@mikehayesuk

MySQL supports fractional seconds to a precision of 6 figures on TIME, DATETIME and TIMESTAMP columns (e.g. 2014-02-10 13:54:30.123456).

However, Eloquent seems to ignore the microseconds. E.g. if the value is '2014-02-10 13:54:30.123456' in the database, Eloquent simply returns '2014-02-10 13:54:30'.

On a related note, the MySQL schema builder doesn't support specifying the fractional seconds precision for these column types.

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