Commit Graph

201 Commits

Author SHA1 Message Date
Harald Eilertsen
ced3113516 Remove unneccessary use statements 2026-03-07 12:00:56 +01:00
Harald Eilertsen
cbd208eea3 Remove use of NULL_DATE constant in core
The NULL_DATE constant is defined conditionally in the DBA static class.
This causes issues with static analyzing tools like PHPStan, because
they can not really know if the constant is defined or not.

We could make PHPStan ignore this, but since there already is a
`get_null_date()` method on the `dba_driver` class, this patch
changes the code to use this method instead.

We could also use the public static attribute `$null_date` on the DBA
class directly, but using a method feels cleaner, and allows for making
the attribute private, or even removing it completely at some later
time.

I'm not removing the NULL_DATE constant for now, in case it is in use by
any extensions.
2026-03-07 11:15:46 +01:00
Mario
b6bec6f7b7 reverse logic 2026-02-14 10:29:14 +00:00
Mario
31b5cfe7ef if the event timezone is different from the channel timezone, display the timezone we have adjusted to instead of the actual event timezone. Otherwise we might create UX confusion about if the displayed time is already timezone adjusted or not. 2026-02-13 08:50:25 +00:00
Mario
be5c8aa2a3 more work on determining whether an event should be adjusted is an all-day event 2025-12-09 08:24:53 +00:00
Mario
643d25b34b simplify and be slightly more strict to define allday events 2025-12-05 22:38:20 +00:00
Mario Vavti
c29d79854e Merge branch 'dev' of https://framagit.org/hubzilla/core into dev 2025-12-05 22:24:33 +01:00
Mario
2834544451 an attempt to better deal with events that have no endTime and events that inline timezone offset in the timestamp 2025-12-05 21:16:30 +00:00
Mario Vavti
60eb8aa42b provide the event hash and timezone in the event object 2025-12-05 22:04:52 +01:00
Mario
9a410f57e6 fix php warnings 2025-06-24 07:25:56 +00:00
Mario
a46b781664 slightly improve event object rendering 2025-02-22 14:43:25 +00:00
Mario Vavti
9e2f3dc05f fix more issues reported by phpstan 2024-11-27 10:25:37 +01:00
Mario Vavti
5cfb3842f1 more phpstan errors 2024-11-17 20:52:13 +01:00
Mario
01da60b385 Merge branch 'various-phpstan-issues' into 'dev'
Several issues discovered by PHPStan

See merge request hubzilla/core!2168
2024-11-14 18:40:15 +00:00
Harald Eilertsen
951800eca6 Several issues discovered by PHPStan 2024-11-14 18:40:15 +00:00
Mario Vavti
4acdb8fb10 containers: port events 2024-10-18 20:18:55 +02:00
Mario
c793cea2f0 fa2bi: catch some remains 2024-08-02 08:50:50 +00:00
Mario
8f41d170a5 fix wrong variable 2024-06-10 09:45:33 +00:00
Mario
494ff44a69 adjusting to the wrong direction when exporting ical and do not use Z because timezone is attached 2024-06-05 10:04:16 +00:00
Harald Eilertsen
0dc959d9fe Deprecate *_config() functions in core. 2024-03-24 09:58:21 +00:00
Mario
3dd7394247 AS2 2024-02-25 19:29:50 +00:00
Mario
2bfdfbe3cc do not feed null to TimeZoneUtil::getTimeZone() 2024-02-13 15:00:41 +00:00
Mario
dd204ec34f start using uuid for internal reference instead of base64 encoded mid 2024-02-01 11:42:55 +00:00
Mario
c0a7dfe2f6 refactor fetch_and_store_parents() and inroduce the fetchparents daemon 2024-01-25 10:13:10 +00:00
Mario Vavti
d1421d720c parse the event object in first place and use the body bbcode as backup 2023-10-04 20:11:05 +02:00
Mario
3ad0179b62 fix regression when rendering event items 2023-04-23 16:07:57 +00:00
Mario
63a8611579 fix issue #1728 2023-03-12 22:03:47 +00:00
Mario
d16b6c3838 fix regression: new event not created 2022-12-02 15:18:01 +00:00
Mario
5502f1cc63 do not update the guid on xchan/hubloc updates and define some array keys 2022-11-04 10:31:05 +00:00
Mario
480862d714 php8: fix more warnings 2022-09-11 14:58:40 +00:00
Mario
c1dc16a89d make sure we use source.content when rendering events to correctly render observer related content. fix wrong media types. 2022-05-16 20:44:53 +00:00
Mario
740fa058aa remove logging 2022-03-04 18:43:54 +00:00
Mario
37f56e1efd event fixes 2022-03-04 18:43:21 +00:00
Mario
db14dbacc9 streamline event activity handling 2022-03-04 15:05:58 +00:00
Mario
c19eb94c52 make sure we transform events to UTC on import before storing. Transform from event timezone if available otherwise channel default 2021-04-22 17:42:58 +00:00
Mario
ed845d93bc 5.0RC testing: fix issue with event responses 2020-10-10 19:06:35 +00:00
Mario
2d2cab0aba event display zot/zot6 compatibility 2020-07-31 08:41:18 +00:00
Mario
03506bd6cf use $mid as plink to prevent to long plinks 2020-04-20 11:58:08 +00:00
zotlabs
6a0ac591d1 event issue when using strict sql mode 2020-04-10 14:27:20 -07:00
Mario
328685d2fb move from build_sync_packet() to Libsync::build_sync_packet() 2020-04-09 09:38:36 +00:00
Mario
84183d9f7e show event timezone only if adjust ist set and the offset of the event timezone is different from the channel default timezone offset 2020-04-05 09:11:12 +00:00
Mario
805f8bf983 show event timezone if it differs from the channel default timezone 2020-04-05 07:59:41 +00:00
Mario
44b935f875 another attempt to get events right 2020-04-04 15:41:58 +00:00
Mario
cade25a112 Revert "more timezone changes"
This reverts commit cec2e92fe3
2020-04-03 22:01:44 +02:00
Mario
ec9418b262 Revert "set timezone iconfig a little earlier in the process so that it will be included in the object"
This reverts commit 6cfaa5cba3
2020-04-03 22:01:02 +02:00
Mario
cec2e92fe3 more timezone changes 2020-04-03 19:50:50 +00:00
Mario
6cfaa5cba3 set timezone iconfig a little earlier in the process so that it will be included in the object 2020-04-03 18:34:15 +00:00
Mario
ac52bebb88 ATOM_TIME format is not compatible with the DB 2020-04-02 12:33:57 +00:00
zotlabs
ead56c59e2 bugfix: event_addtocal not preserving original privacy expectation 2020-01-24 19:38:52 -08:00
zotlabs
2a287e6def event compatibility work 2020-01-14 13:29:45 -08:00