]> git.mxchange.org Git - friendica-addons.git/commitdiff
Add Temporal::utcNow()
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 26 Jan 2018 04:28:13 +0000 (23:28 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 3 Feb 2018 16:40:38 +0000 (11:40 -0500)
public_server/public_server.php
pumpio/pumpio.php
statusnet/statusnet.php
testdrive/testdrive.php
twitter/twitter.php

index 52c115a303fbd0b133239f74f994d981c55fb8f0..23777654b0362644328857d5e2bd1b921775e0c6 100644 (file)
@@ -69,7 +69,7 @@ function public_server_cron($a,$b) {
                        ]);
 
                        q("update user set expire_notification_sent = '%s' where uid = %d",
-                               dbesc(Temporal::convert()),
+                               dbesc(Temporal::utcNow()),
                                intval($rr['uid'])
                        );
                }
index 7e34eab3269ca85ae47ba759eb5c425a81db1739..afdd3455c95f2e74d5a4ea214f00c60c9a35f4ac 100644 (file)
@@ -871,7 +871,7 @@ function pumpio_dounlike(&$a, $uid, $self, $post, $own_id) {
        }
 
        $r = q("UPDATE `item` SET `deleted` = 1, `unseen` = 1, `changed` = '%s' WHERE `verb` = '%s' AND `uid` = %d AND `contact-id` = %d AND `thr-parent` = '%s'",
-               dbesc(Temporal::convert()),
+               dbesc(Temporal::utcNow()),
                dbesc(ACTIVITY_LIKE),
                intval($uid),
                intval($contactid),
@@ -1002,7 +1002,7 @@ function pumpio_get_contact($uid, $contact, $no_insert = false) {
                                        `location`, `about`, `writable`, `blocked`, `readonly`, `pending` )
                                VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0)",
                        intval($uid),
-                       dbesc(Temporal::convert()),
+                       dbesc(Temporal::utcNow()),
                        dbesc($contact->url),
                        dbesc(normalise_link($contact->url)),
                        dbesc(str_replace("acct:", "", $contact->id)),
index c5b62a5d43df3fed440f05441854210427d5e6a6..ee0a6dab7803abcf0b21d952c75042fb3fc45c07 100644 (file)
@@ -936,7 +936,7 @@ function statusnet_fetch_contact($uid, $contact, $create_user)
                                        `location`, `about`, `writable`, `blocked`, `readonly`, `pending` )
                                        VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0 ) ",
                        intval($uid),
-                       dbesc(Temporal::convert()),
+                       dbesc(Temporal::utcNow()),
                        dbesc($contact->statusnet_profile_url),
                        dbesc(normalise_link($contact->statusnet_profile_url)),
                        dbesc(statusnet_address($contact)),
@@ -977,7 +977,7 @@ function statusnet_fetch_contact($uid, $contact, $create_user)
                        dbesc($photos[0]),
                        dbesc($photos[1]),
                        dbesc($photos[2]),
-                       dbesc(Temporal::convert()),
+                       dbesc(Temporal::utcNow()),
                        intval($contact_id)
                );
        } else {
@@ -1008,9 +1008,9 @@ function statusnet_fetch_contact($uid, $contact, $create_user)
                                dbesc($photos[0]),
                                dbesc($photos[1]),
                                dbesc($photos[2]),
-                               dbesc(Temporal::convert()),
-                               dbesc(Temporal::convert()),
-                               dbesc(Temporal::convert()),
+                               dbesc(Temporal::utcNow()),
+                               dbesc(Temporal::utcNow()),
+                               dbesc(Temporal::utcNow()),
                                dbesc($contact->statusnet_profile_url),
                                dbesc(normalise_link($contact->statusnet_profile_url)),
                                dbesc(statusnet_address($contact)),
index efff8c28c66814cebf0e60175aef0962e042f15b..4f4341234c831c1497e3b03913a73d2511b5dddc 100644 (file)
@@ -72,7 +72,7 @@ function testdrive_cron($a,$b) {
                        ]);
 
                        q("update user set expire_notification_sent = '%s' where uid = %d",
-                               dbesc(Temporal::convert()),
+                               dbesc(Temporal::utcNow()),
                                intval($rr['uid'])
                        );
 
index 9c2804b1a34a47408ed03bf5992e427eb37f90ae..cc12e8de8448dad7a223358b27fde337e35e6400 100644 (file)
@@ -1017,7 +1017,7 @@ function twitter_fetch_contact($uid, $contact, $create_user)
                                        `location`, `about`, `writable`, `blocked`, `readonly`, `pending`)
                                        VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0)",
                        intval($uid),
-                       dbesc(Temporal::convert()),
+                       dbesc(Temporal::utcNow()),
                        dbesc("https://twitter.com/" . $contact->screen_name),
                        dbesc(normalise_link("https://twitter.com/" . $contact->screen_name)),
                        dbesc($contact->screen_name."@twitter.com"),
@@ -1061,9 +1061,9 @@ function twitter_fetch_contact($uid, $contact, $create_user)
                                dbesc($photos[0]),
                                dbesc($photos[1]),
                                dbesc($photos[2]),
-                               dbesc(Temporal::convert()),
-                               dbesc(Temporal::convert()),
-                               dbesc(Temporal::convert()),
+                               dbesc(Temporal::utcNow()),
+                               dbesc(Temporal::utcNow()),
+                               dbesc(Temporal::utcNow()),
                                intval($contact_id)
                        );
                }
@@ -1096,9 +1096,9 @@ function twitter_fetch_contact($uid, $contact, $create_user)
                                        dbesc($photos[0]),
                                        dbesc($photos[1]),
                                        dbesc($photos[2]),
-                                       dbesc(Temporal::convert()),
-                                       dbesc(Temporal::convert()),
-                                       dbesc(Temporal::convert()),
+                                       dbesc(Temporal::utcNow()),
+                                       dbesc(Temporal::utcNow()),
+                                       dbesc(Temporal::utcNow()),
                                        dbesc("https://twitter.com/".$contact->screen_name),
                                        dbesc(normalise_link("https://twitter.com/".$contact->screen_name)),
                                        dbesc($contact->screen_name."@twitter.com"),