subeshb1 / nepali-date Goto Github PK
View Code? Open in Web Editor NEW📅 A small JS Library to convert English Date to Nepali and Vice Versa
Home Page: https://subeshb1.github.io/Nepali-Date/
License: MIT License
📅 A small JS Library to convert English Date to Nepali and Vice Versa
Home Page: https://subeshb1.github.io/Nepali-Date/
License: MIT License
throws error in this line ".replace(/(?<!\)(D{1,2}|M{1,4}|Y{2,4}|d{1,3})/g, function (match) {"
possible solution: https://stackoverflow.com/questions/51568821/works-in-chrome-but-breaks-in-safari-invalid-regular-expression-invalid-group
master
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here are some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
The npm token configured in the NPM_TOKEN
environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/
.
If you are using Two Factor Authentication for your account, set its level to "Authorization only" in your account settings. semantic-release cannot publish with the default "
Authorization and writes" level.
Please make sure to set the NPM_TOKEN
environment variable in your CI with the exact value of the npm token.
Good luck with your project ✨
Your semantic-release bot 📦🚀
Ability to parse date based on the standard date formats
Your Releases are too complex!
I am getting the error as title suggests. When I want to convert 2034/02/24 A.D to B.S.
Provide an API to format according to the provided string format
When I am passing a JS Date object as a constructor to NepaliDate, the stored Js date, in the instance, is 1 day behind the original JS date object. This is an example of the problem.
Original Date: 2021-06-08T18:15:00.000Z
Nepali Instance: NepaliDate {
[Symbol(Year)]: 2078,
[Symbol(MonthIndex)]: 1,
[Symbol(Date)]: 25,
[Symbol(Day)]: 2,
[Symbol(JsDate)]: 2021-06-07T18:30:00.000Z
}
Formatted Original: 2021-06-09
Formatted Nepali Date: 2021-06-08
The format is done using Intl.DateTimeFormat.
let formatted = new Intl.DateTimeFormat('en-GB', {timeZone: process.env.TZ, month: '2-digit', day: "2-digit", year: "numeric"}).format(d);
Where process.env.TZ = 'Asia/Kathmandu'
Example:
new NepaliDate('२०७७/०३/१४')
master
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here are some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
semantic-release cannot push the version tag to the branch master
on the remote Git repository with URL https://[secure]@github.com/subeshb1/Nepali-Date
.
This can be caused by:
Good luck with your project ✨
Your semantic-release bot 📦🚀
master
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here are some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
semantic-release cannot push the version tag to the branch master
on the remote Git repository with URL https://[secure]@github.com/subeshb1/Nepali-Date
.
This can be caused by:
Good luck with your project ✨
Your semantic-release bot 📦🚀
There are vulnerable packages being used in this project, we need to fix them
It is giving the wrong day of the week .
let a = new NepaliDate(2077,05,08);
a.format('ddd DD, MMMM YYYY', 'np')
// "बिहिबार ०८, आश्विन २०७७" <-- output
// "सोमबार ०८, भाद्र २०७७" <-- Actual Date in Nepali
When parsing invalid date 2020/20/20
it gives 20/08/2021
.
The value should be the same when the string is sent to the constructor.
The reason, this bug exists is because it uses the same logic as number constructor.
Acceptance Criteria
The string value should be parsed as it is or not parsed at all.
The format ddd
and dddd
should both give Full week day
The read me doesn't provide much information currently. We need to update it so that it provides the information listed in acceptance criteria.
Travis.org has reached its End of Life. Migrate the CI/CD to github actions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.