Loading...
 
Skip to main content

Upcoming events plugin sometimes ignores direct format string instruction

Status
Open
Subject
Upcoming events plugin sometimes ignores direct format string instruction
Version
18.x
Category
  • Consistency
Feature
Calendar
Resolution status
New
Submitted by
hman
Lastmod by
hman
Rating
(0)
Description

Calendar output (through the 'upcoming events' plugin) uses two differing formats for date output, ignoring the pref:

  • Events spanning a whole day are output numerical, example: "03.02.2022".
  • Events with beginning and ending at specific times are reported with weekday, but without year . Example: "Montag, 07. 02". Note the missing full stop after the month!


So factually dates are output (whole day) formatted as (strftime())

Copy to clipboard
"%d.%m.%Y"

and with specific times formatted as (strftime())

Copy to clipboard
"%A, %d. %m"


The pref (long date format) is set to

Copy to clipboard
"%A, %e. %B %Y"

The pref (short date format) is set to

Copy to clipboard
"%Y-%m-%d"

(the Japanese format, which has the beauty of automatically sorting alphabetically in correct order, because the most significant digit is on the far left).

So the output is both inconsistent AND violates the setting in the pref...

strftime() constants:
https://www.geeksforgeeks.org/php-strftime-function/

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8059
Created
Thursday 03 February, 2022 09:51:24 UTC
by hman
LastModif
Thursday 03 February, 2022 10:34:09 UTC


Show PHP error messages