Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brihat-rb committed Mar 11, 2024
1 parent 6859997 commit b9715de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Go [here](https://events.brihatrb.com.np)

Simple listing of various events
- Nepalese National Events
- Lunar Events (2076 - 2080 BS)
- Lunar Events (2076 - 2081 BS)
- international Events
- Nepal Public Holidays (2076 - 2080 BS)
- Nepal Public Holidays (2076 - 2081 BS)

Compiled by me.
4 changes: 2 additions & 2 deletions js/daily.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function get_event(bs_year, bs_month, bs_date) {
if (current_year != bs_year) {
var nepal_event_req = new XMLHttpRequest();
if (bs_year >= 2076 && bs_year <= 2080) {
if (bs_year >= 2076 && bs_year <= 2081) {
json_url = 'https://raw.githubusercontent.com/brihat-rb/brihat-rb.github.io/master/calendar/data/' + bs_year + '_detailed.json';

nepal_event_req.open('GET', json_url, false);
Expand Down Expand Up @@ -91,7 +91,7 @@ function get_event(bs_year, bs_month, bs_date) {
nat_events_key = bs_month.toString().padStart(2, '0') + "-" + bs_date.toString().padStart(2, '0');
sns_events_key = ns_month.toString().padStart(2, '0') + "-" + ns_date.toString().padStart(2, '0');

if (bs_year < 2070 || bs_year > 2080) {
if (bs_year < 2070 || bs_year > 2081) {
console.warn("No Lunar Data Available for Year:", bs_year, "BS");
}

Expand Down

0 comments on commit b9715de

Please sign in to comment.