From bc560bf07d7cd9cb8946e21f11e2511a65fcc1df Mon Sep 17 00:00:00 2001
From: Kevin Paxman <kpaxman@uwaterloo.ca>
Date: Thu, 27 Oct 2022 11:38:00 -0400
Subject: [PATCH] ISTWCMS-5902: make dates Y-m-d instead of Y-d-m

---
 src/Controller/UwDownloadCsvController.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Controller/UwDownloadCsvController.php b/src/Controller/UwDownloadCsvController.php
index b5cba5e3..714801af 100644
--- a/src/Controller/UwDownloadCsvController.php
+++ b/src/Controller/UwDownloadCsvController.php
@@ -138,8 +138,8 @@ class UwDownloadCsvController extends ControllerBase {
           'type' => $node->type->entity->label(),
           'path' => $this->pathAlias->getAliasByPath('/node/' . $node->id()),
           'published' => $node->status->value == 1 ? 'yes' : 'no',
-          'created' => date('Y-d-m G:i', $node->getCreatedTime()),
-          'updated' => date('Y-d-m G:i', $node->getChangedTime()),
+          'created' => date('Y-m-d G:i', $node->getCreatedTime()),
+          'updated' => date('Y-m-d G:i', $node->getChangedTime()),
         ];
 
         // Store the node info for use later in the CSV.
-- 
GitLab