TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.17k stars 550 forks source link

Meal-plan, week display skewed #2171

Open mstrandbo opened 1 year ago

mstrandbo commented 1 year ago

Tandoor Version

1.4.5

Setup

Docker / Docker-Compose

Reverse Proxy

Nginx Proxy Manager (NPM)

Other

No response

Bug description

When in Meal-planner, with week-display enabled, the weeks are skewed one week ahead.

For example, this week (15th nov) is really week 46, but the Meal-planner seems to think it is week 47.

Not sure what logs would be relevant, so here's timedatectl.

$ timedatectl Local time: Tue 2022-11-15 14:14:58 CET Universal time: Tue 2022-11-15 13:14:58 UTC RTC time: Tue 2022-11-15 13:14:58 Time zone: Europe/Oslo (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no

Relevant logs

No response

impeccable16 commented 1 year ago

hi @mstrandbo could you please elaborate this issue

mstrandbo commented 1 year ago

image

I'm not sure how more to elaborate, but see the attached picture. Tandoor seems to be of the impression the current week is 48, which is wrong.

Here's Google Calendar image

I'm not saying it's not a underlying problem with my system, but I don't think so. It's running NTP and everything else is correct time-wise.

vabene1111 commented 1 year ago

thanks for the screenshots, either a library or counting problem.

jayasuryard31 commented 1 year ago

Based on the information you have provided, it seems like the Meal-planner may be using a different time zone or date calculation than your system. The fact that your time date output shows the correct local time and time zone, and that the Meal-planner is displaying the week one week ahead, suggests that there may be a discrepancy between the two.

You could try checking the time zone settings in the Meal-planner application to ensure that they are set to the correct time zone for your location. It's also possible that there may be a bug or issue with the Meal-planner application itself that is causing the week display to be skewed.

If you have access to logs or error messages from the Meal-planner application, you could review those to see if there are any clues as to what might be causing the issue. It's possible that there could be a specific error message or warning that points to the source of the problem.

In any case, it may be helpful to reach out to the developer or support team for the Meal-planner application to report the issue and get assistance with troubleshooting and resolving the problem. They may be able to provide additional guidance or suggest a solution that will help you to get the week display working correctly.

smilerz commented 10 months ago

Bug reported here.

smilerz commented 6 months ago

Reported fixed in next release

https://github.com/richardtallent/vue-simple-calendar/issues/228

vabene1111 commented 6 months ago

sadly vue simple calandar only updates its vue 3 version so we have to wait until we migrated to vue 3