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

found and fixed a bug in getDateRelative() #953

Closed
wants to merge 1 commit into from
Closed

found and fixed a bug in getDateRelative() #953

wants to merge 1 commit into from

Conversation

pftnhr
Copy link
Member

@pftnhr pftnhr commented Mar 12, 2024

The bug in the function getDateRelative() results in a page created at 18:00 being output at 13:00 on the following day today as relative date, which is wrong.

I have modified getDateRelative() so that the basis for calculating the time difference is the date and not the time (86400s (24h)) so now the date of the publication is checked against today's date and outputs the correct relative date.

I have modified `getDateRelative()` so that the basis for calculating the time difference is the date and not the time (86400s (24h)). This had the consequence that `getDateRelative()` a page that was created yesterday at 18:00 o'clock, today at 13:00 o'clock `today` output, which is definitely wrong. Now the date of the publication is checked and compared with today's date.
@pftnhr pftnhr closed this Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant