diff options
author | zotlabs <mike@macgirvin.com> | 2019-05-28 23:14:22 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-05-28 23:14:22 -0700 |
commit | 620fc06b6cd068d6819e1613c4ef0ad10f3ba2a6 (patch) | |
tree | 02e161ec42c61fed13ac5020a0a0f0b3dda1f887 | |
parent | 0fa4c89a1b74879b57fef1e6f785d15d49bd3e30 (diff) | |
download | volse-hubzilla-620fc06b6cd068d6819e1613c4ef0ad10f3ba2a6.tar.gz volse-hubzilla-620fc06b6cd068d6819e1613c4ef0ad10f3ba2a6.tar.bz2 volse-hubzilla-620fc06b6cd068d6819e1613c4ef0ad10f3ba2a6.zip |
anomolies in calls to datetime_convert in include/import
-rw-r--r-- | include/import.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/import.php b/include/import.php index 92ba014d8..4da0d1a0b 100644 --- a/include/import.php +++ b/include/import.php @@ -897,9 +897,9 @@ function import_menus($channel, $menus) { $m['menu_name'] = $menu['pagetitle']; $m['menu_desc'] = $menu['desc']; if($menu['created']) - $m['menu_created'] = datetime_convert($menu['created']); + $m['menu_created'] = datetime_convert('UTC','UTC',$menu['created']); if($menu['edited']) - $m['menu_edited'] = datetime_convert($menu['edited']); + $m['menu_edited'] = datetime_convert('UTC','UTC',$menu['edited']); $m['menu_flags'] = 0; if($menu['flags']) { @@ -955,9 +955,9 @@ function sync_menus($channel, $menus) { $m['menu_name'] = $menu['pagetitle']; $m['menu_desc'] = $menu['desc']; if($menu['created']) - $m['menu_created'] = datetime_convert($menu['created']); + $m['menu_created'] = datetime_convert('UTC','UTC',$menu['created']); if($menu['edited']) - $m['menu_edited'] = datetime_convert($menu['edited']); + $m['menu_edited'] = datetime_convert('UTC','UTC',$menu['edited']); $m['menu_flags'] = 0; if($menu['flags']) { @@ -1643,12 +1643,12 @@ function import_webpage_element($element, $channel, $type) { $arr['created'] = $iteminfo[0]['created']; } else { // otherwise, generate the creation times and unique id - $arr['created'] = datetime_convert('UTC', 'UTC'); + $arr['created'] = datetime_convert(); $arr['uuid'] = item_message_id(); $arr['mid'] = $arr['parent_mid'] = z_root() . '/item/' . $arr['uuid']; } // Update the edited time whether or not the element already exists - $arr['edited'] = datetime_convert('UTC', 'UTC'); + $arr['edited'] = datetime_convert(); // Import the actual element content $arr['body'] = file_get_contents($element['path']); // The element owner is the channel importing the elements |