egroupware_official/api
Ralf Becker 1259ae8d04 More automatic timezone handling schema for new code (hopefully not breaking existing code):
1. SO converts all timestamps to Api\DateTime objects using Api\DateTime::server2user($ts, 'object')
 - Api\Storage and Api\Storage\Base class do that automatic if using 'object' as $timestamp_type constructor parameter
 - if using just Api\Db you need to iterate over your selects manually and apply Api\DateTime::server2user($ts, 'object')
 - timestamps are store in DB in server timezone and above conversation honors that and additionally set the user TZ
2. Rest of the app should keep all timestamps as Api\DateTime objects
 - direct comparison works for Api\DateTime (and PHP \DateTime) as __toString() method automatic converts to UTC timestamps
 - do NOT convert them to timezone-less timestamps and no further timezone conversation needed for output with eTemplate
3. eTemplate2 converts automatic to user timezone for displaying dates and times
 - you need to use <date-time ... data_format="object"/> to get Api\DateTime objects back from eTemplate!
4. Api\Db converts automatic to server timezone when quoting DateTime objects for integer or timestamp columns
5. only output other then eTemplate might need to set a timezone different from the user TZ before calling $ts->format()
2021-01-26 11:16:42 +02:00
..
images move category images to api, fixes PHP Fatal in admin_categories, if phpgwapi is not installed 2016-05-09 10:05:57 +00:00
inc fix diverse occurences of egw_db 2016-05-06 11:13:19 +00:00
js some fixes for int/float widget: server-side was not expanding min/max attribute and client-side considers empty min/max attr as 0 2021-01-22 17:24:55 +02:00
lang pending changes from our translation server 2020-12-15 18:57:33 +01:00
ntlm fix ntlm directory path 2016-07-15 13:54:39 +02:00
setup Changelog for 20.1.20210125 2021-01-25 14:23:37 +02:00
src More automatic timezone handling schema for new code (hopefully not breaking existing code): 2021-01-26 11:16:42 +02:00
templates Add onFinish callback to countdown widget and style it 2020-11-24 13:46:05 +01:00
tests change sharing to allow mounting shared into existing user sessions 2020-10-08 11:24:34 +02:00
anon_images.php * Filemanager/Sharing: fix lost session on first load in sharing links with Firefox 2020-03-17 20:38:30 +01:00
anon_lavatar.php Jitsi avatars: shareing url for pictures, anonymous letter-avatar or gravatar if none 2020-04-06 20:15:00 +02:00
asyncservices.php * API: async service failed to run on a default install (no phpgwapi) 2016-06-08 15:35:06 +02:00
asyncwrapper.php * API: call async-services via HTTP to fix diverse caching problems 2020-11-19 11:22:37 +01:00
avatar.php Introduces avatar.php and replaces all addressbook.photo urls accordingly 2018-10-31 13:49:51 +01:00
categories.php W.I.P of cats, versions or trackers categories color code 2019-02-08 15:16:15 +01:00
changepwd.php * API: webservice call when password has been changed outside EGroupware to eg. re-encrypting (mail) credentials 2018-03-16 11:01:07 +01:00
config.php moving client-data urls to api 2016-04-06 19:57:40 +00:00
emclient-signatures.php ignore empty signatures and email, identity_name needs mail-account data to 2016-11-18 14:48:17 +01:00
images.php cleanup framework to take SVG icons always into account unless it's not found 2019-03-06 13:04:20 +01:00
lang.php making translations a bit more resilient for wrong charset 2018-12-10 10:59:43 +01:00
thumbnail.php Remove check on $GLOBALS['egw_info'] since it's not available at the time 2018-06-06 15:49:14 -06:00
user.php moving client-data urls to api 2016-04-06 19:57:40 +00:00