Problem/Motivation

When using Hijri Format with a website that does not use UTC as it's timezone, the returned time is wrong.

Steps to reproduce

  1. Change website's timezone.
  2. Install Hijri Format.
  3. Use Hijri Formatter on any date field.

Proposed resolution

Convert DateTime to timestamp using the UTC timezone before passing it to Hijri Converter.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Comments

SyfJO created an issue. See original summary.

syfjo’s picture

This should fix the issue.

  • YahyaAlHamad committed df64e47 on 8.x-1.x authored by SyfJO
    Issue #3255666 by SyfJO: Wrong DateTime when a website is using timezone...
yahyaalhamad’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.