mirror of
https://github.com/requarks/wiki.git
synced 2026-03-02 22:06:55 -05:00
Importing from Local File System is ignoring dateCreated and date fields #2548
Labels
No labels
BETA
BETA
accessibility
backlog
bug
can't replicate
contrib-easy
contrib-hard
contrib-medium
deferred
documentation
duplicate
duplicate
editors
enhancement
invalid
localization
migrate
ui
under review
v3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wiki-requarks#2548
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rahul-r on GitHub (Oct 26, 2021).
Actual behavior
I setup local file system storage in wiki.js settings. I created a markdown file with the following content and imported everything to wiki.js (clicked the Run button on Import Everything).
---
title: Note-1
description:
published: true
date: 2012-07-14T22:31:05Z
tags: tag1, tag2
editor: markdown
dateCreated: 2012-07-14T22:24:50Z
---
Note content
The file got imported into wiki.js as expected but the 'last edited by' time in the imported page shows the current time instead of time from the 'date' field of imported file and the page history shows the creation time as current time instead of 'dateCreated' from the imported file
Expected behavior
Imported pages should use the creation time and last edited time from the imported file instead of current time.
Steps to reproduce the behavior
@rtpt-romankarwacik commented on GitHub (Jan 23, 2024):
I used the following patch which disables the automatic updatedAt/createdAt setting, and imports the fields you mentioned (not fully tested though):
@MrSitnikov commented on GitHub (Feb 18, 2025):
Wiki is running in docker-compose:
Specified the backup folder: - ./wiki_backup
In Local File System specified the same folder:./wiki_backup
Create Backup runs correctly, but Import Everything gives errors:
Can you tell me the right way to do the recovery.
@ReySadeghi commented on GitHub (Mar 3, 2025):
@MrSitnikov
I found that it seems search from kup/ folder so if you put your files in this directory on local disk, the files are imported under folder of kup/ on wiki.js:
./wiki_backup/kup/but I don't know the reason and how to rename kup/ from wiki.js.
any help??
@NGPixel