Skip to content

Wrong added & modified date #2

@1101john

Description

@1101john

Thanks!

But I found that added and modified date of bookmark items are wrong.
Sorry, I am not good at English to describe details.
But you can understand my code.

places.js
@@ -32,6 +32,8 @@
             try {
-                bmsvc.setItemDateAdded(bmkid, bmk['date']);
+                bmsvc.setItemDateAdded(bmkid, bmk['date'] * 1000000);
                 if ('modified' in bmk) {
-                    bmsvc.setItemLastModified(bmkid, bmk['modified']);
-                }
+                    bmsvc.setItemLastModified(bmkid, bmk['modified'] * 1000000);
+                } else {
+                    bmsvc.setItemLastModified(bmkid, bmk['date'] * 1000000);
+       }
                 if ('desc' in bmk) {

Anyway, How did you make xpi from js?
(I have no experience in xpi development.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions