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

Publish date is set to 1/1/1970 on creation if empty #58

Closed
3 tasks done
benjaminkott opened this issue Apr 28, 2019 · 0 comments · Fixed by #59
Closed
3 tasks done

Publish date is set to 1/1/1970 on creation if empty #58

benjaminkott opened this issue Apr 28, 2019 · 0 comments · Fixed by #59

Comments

@benjaminkott
Copy link
Member

benjaminkott commented Apr 28, 2019

Bug Report

Prerequisites

  • Can you reproduce the problem on TYPO3 v8.7 LTS
  • Can you reproduce the problem on TYPO3 v9.5 LTS
  • Did you perform a cursory search to see if your bug or feature is already reported?

Description

When creating a new blog post the publish date is set to 1/1/1970 instead of the current date- This is due to the fact TYPO3 is not differencitating between NULL and 0 on datetime fields.

Steps to Reproduce

  1. Create a new page/blog post
  2. Check publish_date, crdate_month and crdate_year

Expected behavior: [What you expected to happen]

Date is set to today

Actual behavior: [What actually happened]

Date is set to 1/1/1970

benjaminkott added a commit that referenced this issue Apr 28, 2019
Fixes: #58
Releases: master, 9.1, 9.0, 8.7
benjaminkott added a commit that referenced this issue Apr 29, 2019
benjaminkott added a commit that referenced this issue Apr 29, 2019
benjaminkott added a commit that referenced this issue Apr 29, 2019
benjaminkott added a commit that referenced this issue Apr 29, 2019
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

Successfully merging a pull request may close this issue.

1 participant