Skip to content

Commit

Permalink
Adjust hijri date
Browse files Browse the repository at this point in the history
  • Loading branch information
ragaeeb committed Jul 20, 2020
1 parent bc87c39 commit e8da016
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/components/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const Header = () => {
iqamahs,
labels = {},
calendarUrl,
hijriAdjust = 0,
} = hero;
const [now, setNow] = useState(new Date());
const isLoaded = latitude && longitude;
Expand All @@ -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 (
<section id="hero" className="jumbotron">
Expand Down
1 change: 1 addition & 0 deletions src/mock/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e8da016

Please sign in to comment.