Views MysqlDateSql::getDateFormat() should translate PHP's 'o' format to MySQL's '%x'

Created on 9 June 2021, almost 4 years ago
Updated 16 August 2023, over 1 year ago

Problem/Motivation

While creating a views argument handler for year+week, I discovered that the generated SQL was not correctly converting the PHP date() format 'oW' to the proper '%x%v' MySQL format.

Steps to reproduce

Proposed resolution

Add the 'o' => '%x', conversion to MysqlDateSql::$replace.

I will add a merge request shortly.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

10.1 ✨

Component
ViewsΒ  β†’

Last updated about 1 hour ago

Created by

πŸ‡ΊπŸ‡ΈUnited States gribnif

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024