Verified Commit 600fa3e4 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! Bug 42472: Spoof timezone in XSLT.

Revert "Bug 42472: Spoof timezone in XSLT."

This reverts commit 7bdf1f4f.
parent 62536693
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -590,14 +590,7 @@ nsresult txEXSLTFunctionCall::evaluate(txIEvalContext* aContext,
      // http://exslt.org/date/functions/date-time/

      PRExplodedTime prtime;
      PR_ExplodeTime(PR_Now(),
                     nsContentUtils::ShouldResistFingerprinting(
                         "We are not allowed to access the document at this "
                         "stage (we are given a txEarlyEvalContext context).",
                         RFPTarget::JSDateTimeUTC)
                         ? PR_GMTParameters
                         : PR_LocalTimeParameters,
                     &prtime);
      PR_ExplodeTime(PR_Now(), PR_LocalTimeParameters, &prtime);

      int32_t offset =
          (prtime.tm_params.tp_gmt_offset + prtime.tm_params.tp_dst_offset) /