Quellcode durchsuchen

Fix date comparison

Jordi Boggiano vor 6 Jahren
Ursprung
Commit
e562db61fa
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      app/Resources/FOSUserBundle/views/Profile/show.html.twig

+ 1 - 1
app/Resources/FOSUserBundle/views/Profile/show.html.twig

@@ -19,7 +19,7 @@
         <hr>
         <hr>
     {%- endif %}
     {%- endif %}
 
 
-    {% if githubSync is not null and githubSync.createdAt > '-2 days'|date %}
+    {% if githubSync is not null and githubSync.createdAt|date('YmdHis') > '-2 days'|date('YmdHis') %}
         <h3 class="font-normal">GitHub Hook Sync</h3>
         <h3 class="font-normal">GitHub Hook Sync</h3>
         {% if githubSync.completedAt is null %}
         {% if githubSync.completedAt is null %}
             <p>Still running... <a href="{{ path('fos_user_profile_show') }}">Refresh</a></p>
             <p>Still running... <a href="{{ path('fos_user_profile_show') }}">Refresh</a></p>