Skip to content

Commit d481e75

Browse files
authored
fix datetime comparison
Closes: #4
1 parent 2b6e200 commit d481e75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class S3Notifier {
5454
}
5555

5656
compareLastModifieds(newLastModified) {
57-
if (newLastModified !== this.lastModified) {
57+
if (newLastModified.getTime() !== this.lastModified.getTime()) {
5858
this.ui.writeLine('config modified; old=%s; new=%s', this.lastModified, newLastModified);
5959
this.lastModified = newLastModified;
6060
this.notify();

0 commit comments

Comments
 (0)