Comments (3)
Probably doing something wrong with the month number as js has the base habit of describing months from 0 to 11, and not 1 to 12
from time-to-leave.
All days are right-shifted one month (e. g., March has 28 days on 2019). I search through _getBody() method on js/calendar.js. Lines 489-450 have the following code:
var d = new Date(this.year, this.month, 0),
monthLength = d.getDate();
In that case, monthLength has the number of days of this.month - 1, that's why everything is shifted (just adding a one will cause other things to crash, though 😅 ).
from time-to-leave.
When you pass a 0 to the third argument instead, it uses the last day of the previous month
So calls calculating monthLength should take this into consideration.
from time-to-leave.
Related Issues (20)
- Release builds with preference problems
- Loading holidays twice ignores conflicts and generates duplicate entries HOT 1
- Add an animation when switching states in holidays table in workday waiver page
- es-lint is failing to recognize ?? operator in workday-waiver.js HOT 2
- Dynamic circular border for scroll-to-top HOT 6
- pre-commit hook not recognizing changed .js files
- Changelog updater bot is adding extra lines that the linter is against HOT 1
- Improve UX by not allowing the user to drag icons and images within the app HOT 3
- App has no font when offline
- Add Day & Night button HOT 3
- Need to be RESPONSIVE for all devices HOT 4
- Many IPC handlers not registered in tests after migration to bridge
- Update to electron 28 as soon as it releases - stop using esm HOT 2
- Check out security concerns in electron
- Preferences window - date overflowing icon HOT 1
- Workday waiver window - extra space at bottom
- Add Arabic Translation HOT 3
- Release assets consistency HOT 1
- MSI installer weird behavior HOT 1
- Allow punching time by command line argument
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from time-to-leave.