From e8da016091374276ec417ba6ab621b3c0b8015fa Mon Sep 17 00:00:00 2001 From: Ragaeeb Haq <7464039+ragaeeb@users.noreply.github.com> Date: Mon, 20 Jul 2020 15:10:11 -0400 Subject: [PATCH] Adjust hijri date --- CHANGELOG.MD | 6 ++++++ README.md | 2 ++ src/components/Hero.jsx | 3 ++- src/mock/data.js | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index fe5ef1f3f..f1f437d3a 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.4] - 2020-07-20 + +### Fixed + +- Adjusted hijri date to be in line with correct Dhu al-Hijjah. + ## [0.5.3] - 2020-07-19 ### Added diff --git a/README.md b/README.md index e853d7ba3..e51da2baf 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +Tutorials: +[Prayer Timings](http://ior.ad/75n0) + # Gatsby Simplefolio ⚡️ [![GitHub](https://img.shields.io/github/license/cobidev/gatsby-simplefolio?color=blue)](https://github.com/cobidev/gatsby-simplefolio/blob/master/LICENSE.md) ![GitHub stars](https://img.shields.io/github/stars/cobidev/gatsby-simplefolio) ![GitHub forks](https://img.shields.io/github/forks/cobidev/gatsby-simplefolio) ## A clean, beautiful and responsive portfolio template for Developers diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index 6d726cbf3..410e1947b 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -64,6 +64,7 @@ const Header = () => { iqamahs, labels = {}, calendarUrl, + hijriAdjust = 0, } = hero; const [now, setNow] = useState(new Date()); const isLoaded = latitude && longitude; @@ -80,7 +81,7 @@ const Header = () => { ? daily(labels, latitude, longitude, timeZone, now, iqamahs) : placeholder; - const { day, date: hijriDate, month, year } = hijri(0, now); + const { day, date: hijriDate, month, year } = hijri(hijriAdjust, now); return (
diff --git a/src/mock/data.js b/src/mock/data.js index 4ad021626..3e74440d4 100644 --- a/src/mock/data.js +++ b/src/mock/data.js @@ -153,6 +153,7 @@ export const heroData = { }, }, timeZone: 'America/Toronto', + hijriAdjust: -1, fajrPdf: 'https://archive.org/download/fajr-letter-das/Letter_Fajr-Ishaa_Ottawa-2016-06-27.pdf', calendarUrl: 'https://calendar.google.com/calendar/embed?src=60me58mrktt0lt24mijjkhddvc%40group.calendar.google.com&ctz=America%2FNew_York',