aboutsummaryrefslogtreecommitdiffstats
path: root/include/datetime.php
Commit message (Collapse)AuthorAgeFilesLines
* profile edit: empty dob is set to the date of the first profile save unless ↵zotlabs2018-02-281-1/+1
| | | | you clear it first
* code cleanupzotlabs2018-02-051-81/+16
|
* :bulb: Improving Doxygen documentation.Klaus Weidenbach2017-11-031-42/+45
| | | | | Fix some Doxygen parsing errors. Improve hooks documentation.
* [TASK] Update Doxyfile and fix Doxygen errors.Klaus Weidenbach2016-10-131-11/+13
| | | | | | Updated Doxyfile to include new folders. Add a list for @hooks tags. Fixed some parsing problems for Doxygen.
* next wave of nulldate fixesredmatrix2016-09-261-4/+9
|
* null_date conversion; phase 1redmatrix2016-09-251-1/+1
|
* function to check for different values of NULL_DATE for backward compatibilityredmatrix2016-09-211-0/+7
|
* fix birthday addtocalredmatrix2016-07-211-3/+3
|
* Merge branch '1.8RC'redmatrix2016-06-191-1/+0
|\
| * code cleanupredmatrix2016-05-241-1/+0
| |
* | When picktime is false, close date selector on date selectOda2016-06-181-1/+1
|/
* static Appredmatrix2016-03-311-1/+1
|
* some janitor work on profilesMario Vavti2016-03-121-1/+11
|
* a bit of page cleanup for edit profilesredmatrix2016-03-071-1/+1
|
* turn timezone aware birthdays into a feature for those who want an ↵redmatrix2016-02-261-1/+1
| | | | uncluttered calendar - at the expense of possibly sending somebody's birthday greeting on the wrong day if they are in a different timezone.
* this reverts ea54987ca4c36redmatrix2016-02-251-1/+1
|
* in update_birthdays() we should probably set adjust to 0 instead of 1 since ↵Mario Vavti2016-02-251-1/+1
| | | | a birthday is more a kind of a global holiday
* issue #288 allow relative_date() to be translated into languages with more ↵redmatrix2016-02-191-8/+41
| | | | than two plural forms, such as pl.
* default timepicker to 15 min steps. abbr -> spanMario Vavti2015-11-261-1/+1
|
* add (blank?) label param to other instances of datetimeselredmatrix2015-11-241-2/+2
|
* oups :)Mario Vavti2015-11-241-1/+1
|
* some event heavy lifting - please test and report issuesMario Vavti2015-11-241-11/+12
|
* do not hide scrollbarsMario Vavti2015-11-211-1/+1
|
* datetimepicker should also respect first day of week settingMario Vavti2015-11-211-2/+2
|
* Correcting reported Doxygen syntax warnings.Klaus Weidenbach2015-03-291-199/+253
| | | | | | | Fixed wrong Doxygen syntax and add some of the available FIXME to Doxygen documentation. Updated Doxygen configuration to add also all capital letter tags. Adding some more Doxygen documentation.
* provide ways to over-ride the datetime pickersfriendica2015-03-261-0/+2
|
* event form cleanup backported from trinidad - still need to style the checkboxesfriendica2015-02-051-1/+2
|
* Use grouped select field for timezone selectionStefan Parviainen2015-01-011-38/+9
|
* Switch to a better datetime picker widgetStefan Parviainen2014-11-161-17/+28
|
* Merge remote-tracking branch 'upstream/master'Habeas Codice2014-11-131-3/+10
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: boot.php include/dba/dba_driver.php include/diaspora.php include/follow.php include/session.php include/zot.php mod/photos.php mod/ping.php
| * the code is a bit crufty, but this should fix issue #687friendica2014-11-111-3/+10
| |
* | PostgreSQL support initial commitHabeas Codice2014-11-131-2/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were 11 main types of changes: - UPDATE's and DELETE's sometimes had LIMIT 1 at the end of them. This is not only non-compliant but it would certainly not do what whoever wrote it thought it would. It is likely this mistake was just copied from Friendica. All of these instances, the LIMIT 1 was simply removed. - Bitwise operations (and even some non-zero int checks) erroneously rely on MySQL implicit integer-boolean conversion in the WHERE clauses. This is non-compliant (and bad programming practice to boot). Proper explicit boolean conversions were added. New queries should use proper conventions. - MySQL has a different operator for bitwise XOR than postgres. Rather than add yet another dba_ func, I converted them to "& ~" ("AND NOT") when turning off, and "|" ("OR") when turning on. There were no true toggles (XOR). New queries should refrain from using XOR when not necessary. - There are several fields which the schema has marked as NOT NULL, but the inserts don't specify them. The reason this works is because mysql totally ignores the constraint and adds an empty text default automatically. Again, non-compliant, obviously. In these cases a default of empty text was added. - Several statements rely on a non-standard MySQL feature (http://dev.mysql.com/doc/refman/5.5/en/group-by-handling.html). These queries can all be rewritten to be standards compliant. Interestingly enough, the newly rewritten standards compliant queries run a zillion times faster, even on MySQL. - A couple of function/operator name translations were needed (RAND/RANDOM, GROUP_CONCAT/STRING_AGG, UTC_NOW, REGEXP/~, ^/#) -- assist functions added in the dba_ - INTERVALs: postgres requires quotes around the value, mysql requires that there are not quotes around the value -- assist functions added in the dba_ - NULL_DATE's -- Postgres does not allow the invalid date '0000-00-00 00:00:00' (there is no such thing as year 0 or month 0 or day 0). We use '0001-01-01 00:00:00' for postgres. Conversions are handled in Zot/item packets automagically by quoting all dates with dbescdate(). - char(##) specifications in the schema creates fields with blank spaces that aren't trimmed in the code. MySQL apparently treats char(##) as varchar(##), again, non-compliant. Since postgres works better with text fields anyway, this ball of bugs was simply side-stepped by using 'text' datatype for all text fields in the postgres schema. varchar was used in a couple of places where it actually seemed appropriate (size constraint), but without rigorously vetting that all of the PHP code actually validates data, new bugs might come out from under the rug. - postgres doesn't store nul bytes and a few other non-printables in text fields, even when quoted. bytea fields were used when storing binary data (photo.data, attach.data). A new dbescbin() function was added to handle this transparently. - postgres does not support LIMIT #,# syntax. All databases support LIMIT # OFFSET # syntax. Statements were updated to be standard. These changes require corresponding changes in the coding standards. Please review those before adding any code going forward. Still on my TODO list: - remove quotes from non-reserved identifiers and make reserved identifiers use dba func for quoting - Rewrite search queries for better results (both MySQL and Postgres)
* Fix problem with default birth dateStefan Parviainen2014-10-311-1/+4
|
* Don't display date format, it's already in the placeholder textStefan Parviainen2014-10-191-30/+0
|
* Changes in the datetimesel api, prevent user from picking event end date ↵Stefan Parviainen2014-10-191-70/+51
| | | | earlier than start date
* Oops, forgot one fileStefan Parviainen2014-10-181-73/+85
|
* This is long overdue - use a symblic constant NULL_DATE instead of the ↵friendica2014-09-081-1/+1
| | | | easily mis-typed sequence '0000-00-00 00:00:00'
* don't add a birthday event if the birthday channel doesn't have permission ↵friendica2014-06-031-0/+5
| | | | to send you posts.
* bring back birthdaysfriendica2014-06-021-1/+49
|
* reorganise a few included functions - notably identity related functionsfriendica2013-12-031-0/+21
|
* start formatting for Doxygenfriendica2013-02-251-22/+20
|
* progress however tediousMike Macgirvin2012-10-231-55/+0
|
* more work on json notifications, now working except for notify popupfriendica2012-07-151-1/+1
|
* gracefully recover from datetime constructor issuesfriendica2012-07-111-2/+23
|
* typosfriendica2012-06-251-1/+1
|
* add event titles to discovered birthday eventsfriendica2012-06-251-3/+6
|
* add missing bracketErkan Yilmaz2012-06-131-1/+1
|
* survive bad/un-parseable input to datetime_convertfriendica2012-06-121-1/+1
|
* "howlong" added to marital status.friendica2012-06-021-2/+4
|
* more sane defaults datetime_convertfriendica2012-04-081-3/+6
|