You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
I can't get any indication this plugin works with the latest or previous versions of moment.js. (I tried specifically using moment.js 2.0.0 as well as latest as of today).
Minimal case is:
<script src="js/moment.js"></script>
<script src="js/moment-holiday.js"></script>
<script>
var currentTime = moment();
console.log(currentTime); //Correct time shown
console.log('YOU: ' + currentTime.format("HH:mm DD-MM-YYYY")); //Correct time shown
var holiday = moment().isHoliday(null, true); //moment(...).isHoliday is not a function
</script>```
The text was updated successfully, but these errors were encountered:
If you're not using Node (or anything that doesn't support the require function), you'll need to make sure that you include the locale file(s) that you're trying to use.
Oh, I'm sorry. I thought the minimal example provided under "browsers" would be sufficient. I should have read the entire document just in case something like that was randomly put in later.
Adding the additional locale file(s) doesn't change the outcome whatsoever.
<script src="js/moment.js"></script>
<script src="js/moment-holiday.js"></script>
<script src="js/united_kingdom.js"></script>
<script>
var currentTime = moment();
console.log(currentTime); //Correct time shown
console.log('YOU: ' + currentTime.format("HH:mm DD-MM-YYYY")); //Correct time shown
var holiday = moment().isHoliday(null, true); //moment(...).isHoliday is not a function
</script>```
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I can't get any indication this plugin works with the latest or previous versions of moment.js. (I tried specifically using moment.js 2.0.0 as well as latest as of today).
Minimal case is:
The text was updated successfully, but these errors were encountered: