https://github.com/friendica/friendica/issues/2786 Only tested on Ubuntu 16.10 with MySQL 5.7.17. https://dev.mysql.com/doc/refman/8.0/en/timestamp-initialization.html https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_no_zero_date As of MySQL 5.7.4, NO_ZERO_DATE is deprecated. Patch based on the following search & replace (and then reverting some changes in libraries): ```sh grep -l '= "0000-00-00"' -r . | xargs sed -i -e "s/= \"0000-00-00\"/= '0000-00-00'/g" grep -l "0000-00-00" -r . | xargs sed -i -e "s/0000-00-00/0001-01-01/g" grep -l "!= '0001-01-01'" -r . | xargs sed -i -e "s/!= '0001-01-01'/> '0001-01-01'/g" grep -l " === '0001-01-01'" -r . | xargs sed -i -e "s/ === '0001-01-01'/ <= '0001-01-01'/g" grep -l " == '0001-01-01'" -r . | xargs sed -i -e "s/ == '0001-01-01'/ <= '0001-01-01'/g" grep -l "strpos(\$dob, '0000-') === 0" -r . | xargs sed -i -e "s/strpos(\$dob, '0000-') === 0/strpos(\$dob, '0000-') === 0 || strpos(\$dob, '0001-') === 0/g" grep -l 'array("", "0001-01-01")' -r . | xargs sed -i -e 's/array("", "0001-01-01")/array("", "0000-00-00", "0001-01-01")/g' grep -l "\$dob = '0000-'" -r . | xargs sed -i -e "s/\$dob = '0000-'/\$dob = '0001-'/g" ``` |
||
|---|---|---|
| .. | ||
| acl_selectors.php | ||
| api.php | ||
| attach.php | ||
| auth.php | ||
| auth_ejabberd.php | ||
| bb2diaspora.php | ||
| bbcode.php | ||
| cache.php | ||
| cli_startup.php | ||
| config.php | ||
| Contact.php | ||
| contact_selectors.php | ||
| contact_widgets.php | ||
| conversation.php | ||
| create_shadowentry.php | ||
| cron.php | ||
| cronhooks.php | ||
| cronjobs.php | ||
| crypto.php | ||
| datetime.php | ||
| dba.php | ||
| dba_pdo.php | ||
| dbclean.php | ||
| dbm.php | ||
| dbstructure.php | ||
| dbupdate.php | ||
| delivery.php | ||
| dfrn.php | ||
| diaspora.php | ||
| directory.php | ||
| DirSearch.php | ||
| discover_poco.php | ||
| email.php | ||
| Emailer.php | ||
| enotify.php | ||
| event.php | ||
| expire.php | ||
| fcontact.php | ||
| features.php | ||
| feed.php | ||
| files.php | ||
| follow.php | ||
| ForumManager.php | ||
| friendica_smarty.php | ||
| gprobe.php | ||
| group.php | ||
| html2bbcode.php | ||
| html2plain.php | ||
| HTTPExceptions.php | ||
| identity.php | ||
| items.php | ||
| like.php | ||
| lock.php | ||
| map.php | ||
| message.php | ||
| msgclean.php | ||
| nav.php | ||
| network.php | ||
| NotificationsManager.php | ||
| notifier.php | ||
| oauth.php | ||
| oembed.php | ||
| onepoll.php | ||
| ostatus.php | ||
| pgettext.php | ||
| Photo.php | ||
| photos.php | ||
| pidfile.php | ||
| plaintext.php | ||
| plugin.php | ||
| poller.php | ||
| post_update.php | ||
| Probe.php | ||
| profile_selectors.php | ||
| profile_update.php | ||
| pubsubpublish.php | ||
| queue.php | ||
| queue_fn.php | ||
| quoteconvert.php | ||
| redir.php | ||
| remove_contact.php | ||
| salmon.php | ||
| Scrape.php | ||
| security.php | ||
| session.php | ||
| shadowupdate.php | ||
| Smilies.php | ||
| socgraph.php | ||
| spool_post.php | ||
| system_unavailable.php | ||
| tags.php | ||
| tagupdate.php | ||
| template_processor.php | ||
| text.php | ||
| threads.php | ||
| threadupdate.php | ||
| uimport.php | ||
| update_gcontact.php | ||
| user.php | ||
| xml.php | ||