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

Dates omitted/appearing outside of date range #51

Closed
mjniland1 opened this issue Sep 9, 2022 · 2 comments
Closed

Dates omitted/appearing outside of date range #51

mjniland1 opened this issue Sep 9, 2022 · 2 comments

Comments

@mjniland1
Copy link

I'm trying out timeloop for a project but I'm experiencing some strange behavior. Here are my settings:

Start Date: 8/9/22
End Date: 16/9/22
Frequency: Every Week
Interval: Every 1 week on Saturday

I'm using the following loop to get future dates:

{% for date in entry.timeloop.dates %}
{{ date | date('d/m/y') }}
{% endfor %}

In my mind, these settings should return: 10/9/22 but my loop outputs 17/9/22. It omits the correct date and returns one outside the start/end date range.

Craft Version: Craft Pro 4.2.3
PHP: 8.0.8
Timeloop: 4.0.1

@jt-systems
Copy link

Hi @mjniland1 - I would agree that expected behaviour is not correct on this. We'll jump on and update this - expect an update early next week 👍

@cookie10codes
Copy link
Contributor

Hi @mjniland1,

Thanks for raising the issue, my apologies it occurred. A release with a bug fix just went out. Let me know if this solves your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants