diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php
index c014e4a..06975f8 100644
--- a/core/lib/Drupal/Core/DrupalKernel.php
+++ b/core/lib/Drupal/Core/DrupalKernel.php
@@ -746,6 +746,13 @@ public static function bootEnvironment() {
     // Use httponly session cookies.
     ini_set('session.cookie_httponly', '1');
 
+    // Ensure a precision value of at least 14.
+    // It is vital that an appropriate precision level is set so that reliable
+    // comparisons of timestamps can be made.
+    if (ini_get('precision') < 14) {
+      ini_set('precision', 14);
+    }
+
     // Set sane locale settings, to ensure consistent string, dates, times and
     // numbers handling.
     setlocale(LC_ALL, 'C');
