Skip to content
Snippets Groups Projects
Commit c7a55925 authored by HGEpro's avatar HGEpro
Browse files

fixed millis in timestamp

parent 0970b441
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ import { invoke } from '@tauri-apps/api';
export class Task {
async create(name, subject, description, expires_at) {
return await invoke("add_task", { name: name, subject: subject, description: description, expiresAt: expires_at });
return await invoke("add_task", { name: name, subject: subject, description: description, expiresAt: (parseInt(expires_at) / 1000).toString() });
}
async get_batch(limit, page) {
return await invoke("get_tasks", { limit: limit, page: page });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment