Coder Social home page Coder Social logo

subeshb1 / nepali-date Goto Github PK

View Code? Open in Web Editor NEW
51.0 2.0 15.0 1.03 MB

📅 A small JS Library to convert English Date to Nepali and Vice Versa

Home Page: https://subeshb1.github.io/Nepali-Date/

License: MIT License

TypeScript 100.00%
nepali datetime nepali-date-converter nepali-calendar nepal bikram-samwat-converter bikram-samvat bikram-samwat bs ad-bs

nepali-date's People

Contributors

alina02 avatar dependabot[bot] avatar pabin avatar rajivsah avatar subeshb1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nepali-date's Issues

The automated release is failing 🚨

🚨 The automated release from the 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.


Invalid npm token.

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 📦🚀

Js Date stored in Instance Object is a day behind the date object.

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'

The automated release is failing 🚨

🚨 The automated release from the 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.


Cannot push to the Git repository.

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 📦🚀

The automated release is failing 🚨

🚨 The automated release from the 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.


Cannot push to the Git repository.

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 📦🚀

current date issue

is't it supposed to print the Nepali date (2077/03/11) of input new NepaliDate(new Date(2020, 06, 25)) instead I am getting (2077/03/10) neither I am getting expected output of new NepaliDate() which is current date or am I missing something?

output

Security Vulnerability

Problem Statement

There are vulnerable packages being used in this project, we need to fix them

Acceptance criteria

  • Identify whether the packages are required or not.
  • Eliminate the package or update them to safe version.

Wrong Day Of Week

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

Wrong value when parsing nepali date string

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.

Update Read me

Problem Statement

The read me doesn't provide much information currently. We need to update it so that it provides the information listed in acceptance criteria.

Acceptance Criteria

  • Installation method
  • NPM package version in top
  • Basic Usage documentaion
  • Contributing guide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.