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

fix(Import): DateTime import fixes #1545

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jan 16, 2025

  • do not try to pass null to DateTimeImmutable as it would cause an Exception
  • be stricter on small letter-only values that might be turned into a DateTimeImmutable object because they match with timezone abbreviations
  • do not consider pure numbers a date

fixes #1518

@blizzz blizzz added bug Something isn't working 3. to review Waiting for reviews labels Jan 16, 2025
@blizzz blizzz requested a review from enjeck as a code owner January 16, 2025 20:02
@blizzz
Copy link
Member Author

blizzz commented Jan 16, 2025

/backport to stable0.8

@backportbot backportbot bot added the backport-request Pending backport by the backport-bot label Jan 16, 2025
- do not try to pass `null` to DateTimeImmutable as it would cause an
  Exception
- be stricter on small letter-only values that might be turned into a
  DateTimeImmutable object because they match with timezone abbreviations
- do not consider pure numbers a date

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz force-pushed the fix/1518/import-date-handling branch from 28ae5e4 to 0e60292 Compare January 16, 2025 20:41
@blizzz blizzz requested a review from juliusknorr January 17, 2025 12:50
@@ -218,6 +218,32 @@ Feature: APIv1
| import-from-ms365.xlsx |
| import-from-libreoffice.csv |

@api1 @import @current
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotta remove @current again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews backport-request Pending backport by the backport-bot bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import CSV file from another Nextcloud Tables instance not working
1 participant