I'm just trying to set time of note via DATA API. Nothing happens. Always the current time is set. I made endless trials to set the time (f.i. updated_time) in different formats or via POST or PUT.
Is this possible or not?
The reason for doing this is: I want to reproduce the original time in my importer module.
post = async function(path: Path, query?: any, body?: any, files?: any[]) : Promise<any>
{
var response = await joplin.data.post(path, query, body, files);
if (path.length == 1 && (response.id || "") != "")
{
var update = { created_time: 3600, updated_time: 3600 };
path.push(response.id);
await joplin.data.put(path, query, update);
console.info(this.created);
}
return response;
}
Thank's
Mick2nd