Fix WebTCT auto extra-html5-tests blocked cases. 35/319535/5
authorchiragmaheshwari <c.maheshwari@samsung.com>
Wed, 12 Feb 2025 12:10:30 +0000 (17:40 +0530)
committerBot Blink <blinkbot@samsung.com>
Fri, 14 Feb 2025 09:28:43 +0000 (09:28 +0000)
This patch fixes datetime crash which was due to switch case not handled for kDateTime type in function MillisecondsSinceEpoch.

Change-Id: I5e48369204637a84f3d3dc76ae3f702cb53e1dc1
Signed-off-by: chiragmaheshwari <c.maheshwari@samsung.com>
third_party/blink/renderer/platform/text/date_components.cc

index 318e364dc3efe0cf84358c06ab8d21e2c8874846..33e5aa08bac936f5ccbbeb8de2a002b982e516b0 100644 (file)
@@ -673,6 +673,9 @@ double DateComponents::MillisecondsSinceEpoch() const {
   switch (type_) {
     case kDate:
       return DateToDaysFrom1970(year_, month_, month_day_) * kMsPerDay;
+#if(BUILDFLAG(IS_EFL))
+    case kDateTime:
+#endif
     case kDateTimeLocal:
       return DateToDaysFrom1970(year_, month_, month_day_) * kMsPerDay +
              MillisecondsSinceEpochForTime();