-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module): change week date format to yyyy/mm/dd
BREAKING CHANGES: the week date format for enhanced parsing was changed to yyyy/mm/dd
- Loading branch information
Showing
23 changed files
with
338 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community. | |
Examples of behavior that contributes to a positive environment for our | ||
community include: | ||
|
||
* Demonstrating empathy and kindness toward other people | ||
* Being respectful of differing opinions, viewpoints, and experiences | ||
* Giving and gracefully accepting constructive feedback | ||
* Accepting responsibility and apologizing to those affected by our mistakes, | ||
- Demonstrating empathy and kindness toward other people | ||
- Being respectful of differing opinions, viewpoints, and experiences | ||
- Giving and gracefully accepting constructive feedback | ||
- Accepting responsibility and apologizing to those affected by our mistakes, | ||
and learning from the experience | ||
* Focusing on what is best not just for us as individuals, but for the | ||
- Focusing on what is best not just for us as individuals, but for the | ||
overall community | ||
|
||
Examples of unacceptable behavior include: | ||
|
||
* The use of sexualized language or imagery, and sexual attention or | ||
- The use of sexualized language or imagery, and sexual attention or | ||
advances of any kind | ||
* Trolling, insulting or derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or email | ||
- Trolling, insulting or derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or email | ||
address, without their explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
- Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Enforcement Responsibilities | ||
|
@@ -60,7 +60,7 @@ representative at an online or offline event. | |
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported to the community leaders responsible for enforcement at | ||
[email protected]. | ||
sws2apps.notification@gmail.com. | ||
All complaints will be reviewed and investigated promptly and fairly. | ||
|
||
All community leaders are obligated to respect the privacy and security of the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
## Reporting a Vulnerability | ||
|
||
You can report a vulnerability by contacting us via email at [email protected]. We will try to do our best to respond you and handle the matter as soon as possible. | ||
You can report a vulnerability by contacting us via email at sws2apps.notification@gmail.com. We will try to do our best to respond you and handle the matter as soon as possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
import dateFormat from 'dateformat'; | ||
import { | ||
extractAYFAssignment, | ||
extractCBSSource, | ||
extractLCAssignment, | ||
extractMonthName, | ||
extractTGWBibleReading, | ||
extractTGWTalk, | ||
extractWTStudyDate, | ||
extractAYFAssignment, | ||
extractCBSSource, | ||
extractLCAssignment, | ||
extractMonthName, | ||
extractTGWBibleReading, | ||
extractTGWTalk, | ||
extractWTStudyDate, | ||
} from './parsing_rules.js'; | ||
|
||
export const getMWBWeekDateEnhanced = (weekDate, mwbYear, lang) => { | ||
const { varDay, monthIndex } = extractMonthName(weekDate, lang); | ||
const schedDate = new Date(mwbYear, monthIndex, varDay); | ||
const { varDay, monthIndex } = extractMonthName(weekDate, lang); | ||
const schedDate = new Date(mwbYear, monthIndex, varDay); | ||
|
||
return dateFormat(schedDate, 'mm/dd/yyyy'); | ||
return dateFormat(schedDate, 'yyyy/mm/dd'); | ||
}; | ||
|
||
export const getMWBTGWTalkEnhanced = (src, lang) => { | ||
return extractTGWTalk(src, lang); | ||
return extractTGWTalk(src, lang); | ||
}; | ||
|
||
export const getMWBTGWBibleReadingEnhanced = (src, lang) => { | ||
return extractTGWBibleReading(src, lang); | ||
return extractTGWBibleReading(src, lang); | ||
}; | ||
|
||
export const getMWBAYFEnhanced = (src, lang) => { | ||
return extractAYFAssignment(src, lang); | ||
return extractAYFAssignment(src, lang); | ||
}; | ||
|
||
export const getMWBLCEnhanced = (src, lang) => { | ||
return extractLCAssignment(src, lang); | ||
return extractLCAssignment(src, lang); | ||
}; | ||
|
||
export const getMWBCBSEnhanced = (src, lang) => { | ||
return extractCBSSource(src, lang); | ||
return extractCBSSource(src, lang); | ||
}; | ||
|
||
export const getWTStudyDateEnhanced = (src, lang) => { | ||
const { varDay, monthIndex, varYear } = extractWTStudyDate(src, lang); | ||
const schedDate = new Date(varYear, monthIndex, varDay); | ||
return dateFormat(schedDate, 'mm/dd/yyyy'); | ||
const { varDay, monthIndex, varYear } = extractWTStudyDate(src, lang); | ||
const schedDate = new Date(varYear, monthIndex, varDay); | ||
return dateFormat(schedDate, 'yyyy/mm/dd'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.