Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.4.4 Version #180

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Logs:

## [4.4.4](https://github.com/react-scheduler/react-big-schedule/compare/4.4.3...4.4.4)
`2024-11-13`

- Fix the `dayjs` locale issue by [@ansulagrawal](https://github.com/ansulagrawal) in [#178](https://github.com/react-scheduler/react-big-schedule/pull/179).

## [4.4.3](https://github.com/react-scheduler/react-big-schedule/compare/4.4.2...4.4.3)
`2024-10-28`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-big-schedule",
"version": "4.4.3",
"version": "4.4.4",
"description": "React Big Schedule is a powerful and intuitive scheduler and resource planning solution built with React. Seamlessly integrate this modern browser-compatible component into your applications to effectively manage time, appointments, and resources. With drag-and-drop functionality, interactive UI, and granular views, react-big-schedule empowers users to effortlessly schedule and allocate resources with precision. Enhance productivity and streamline your workflow with this React-based solution, designed to optimize time management and simplify calendar-based operations. Perfect for applications requiring advanced scheduling capabilities, react-big-schedule offers a seamless and intuitive experience for managing appointments, resource allocation, and time slots. Unlock the potential of your React projects with react-big-schedule and revolutionize the way you handle scheduling and resource planning. It is the updated version of react-big-scheduler",
"keywords": [
"react-big-schedule",
Expand Down
2 changes: 1 addition & 1 deletion src/components/EventItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const stopDragHelper = ({ count, cellUnit, config, dragType, eventItem, localeDa
while (whileTrue) {
i = count > 0 ? i + 1 : i - 1;
const date = localeDayjs(new Date(eventItem[dragType])).add(i, 'days');
const dayOfWeek = date.weekday();
const dayOfWeek = date.day();

if (dayOfWeek !== 0 && dayOfWeek !== 6) {
tCount = count > 0 ? tCount + 1 : tCount - 1;
Expand Down
2 changes: 1 addition & 1 deletion src/components/SchedulerData.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ export default class SchedulerData {
} else if (this.cellUnit === CellUnit.Day) {
while (header >= start && header <= end) {
const time = header.format(DATETIME_FORMAT);
const dayOfWeek = header.weekday();
const dayOfWeek = header.day();
if (this.config.displayWeekend || (dayOfWeek !== 0 && dayOfWeek !== 6)) {
const nonWorkingTime = this.behaviors.isNonWorkingTimeFunc(this, time);
headers.push({ time, nonWorkingTime });
Expand Down
2 changes: 1 addition & 1 deletion src/helper/behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const isNonWorkingTime = (schedulerData, time) => {
const hour = localeDayjs(new Date(time)).hour();
return hour < 9 || hour > 18;
}
const dayOfWeek = localeDayjs(new Date(time)).weekday();
const dayOfWeek = localeDayjs(new Date(time)).day();
return dayOfWeek === 0 || dayOfWeek === 6;
};

Expand Down