Skip to content

Could not construct a date from 2023-08-30 14:10:36.873 with format Y-m-d H:i:s #203

Closed Answered by jaydrogers
jaydrogers asked this question in Q&A
Discussion options

You must be logged in to vote

✅ Confirmed solution

  • The user had to change the Driver used to connect to the SQL server

Their previous code

# Install SQL Server drivers
RUN apt-get update \
    && apt-get install -y software-properties-common unixodbc-dev php8.1-xml php-pear libcurl3-openssl-dev php8.1-dev php8.1-ldap php8.1-sybase \
    && pecl install sqlsrv \
    && pecl install pdo_sqlsrv \
    && printf "; priority=20\nextension=sqlsrv.so\n" > /etc/php/8.1/mods-available/sqlsrv.ini \
    && printf "; priority=30\nextension=pdo_sqlsrv.so\n" > /etc/php/8.1/mods-available/pdo_sqlsrv.ini \
    && phpenmod -v 8.1 sqlsrv pdo_sqlsrv

Their code that resolved it

RUN apt install -y \
    php-gd \
    php-common \
    php-…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jaydrogers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant