Skip to content

date_format function incorrect #683

@lide-reed

Description

@lide-reed

Describe the bug
mysql> select date_format("2019-03-04 22:23:00", '%W %w');
+---------------------------------------------+
| date_format('2019-03-04 22:23:00', '%W %w') |
+---------------------------------------------+
| %2 %10 |
+---------------------------------------------+
1 row in set (0.08 sec)

To Reproduce
mysql> select date_format("2019-03-04 22:23:00", '%W %w');
+---------------------------------------------+
| date_format('2019-03-04 22:23:00', '%W %w') |
+---------------------------------------------+
| %2 %10 |
+---------------------------------------------+
1 row in set (0.08 sec)

Expected behavior
mysql> select date_format("2019-03-04 22:23:00", '%W %w');
+---------------------------------------------+
| date_format('2019-03-04 22:23:00', '%W %w') |
+---------------------------------------------+
| Monday 1 |
+---------------------------------------------+
1 row in set (0.04 sec)

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