« Project home page
my little forum
Log in
Register
Search:
Back to the entry by Auge
Post reply
Reply to the message by
Auge
Name:
E-mail:
(optional, won't be displayed directly)
Leave this field empty:
Homepage:
(optional)
Leave this field empty:
Location:
(optional)
Remember me (cookie)
Category:
General
Project organisation
Technics
Design/Themes
Features
Development
Todo
Bugs
German / Deutsch
Spanish / Español
French / Français
Accessibility/UX
Subject:
Formatting help
skip to input
format text bold
[b]bold text[/b]
format text italic
[i]italic text[/i]
insert hyperlink
[link=http://example.com/]link text[/link] / [link]http://example.com/[/link]
set text color
[color=#rgb]colored text[/color]
font size
[size=small]small text[/size]
[size=large]large text[/size]
insert list
[list][*]list item[/list]
insert image
[img]http://example.com/image.jpg[/img]
left: [img=left]http://example.com/image.jpg[/img]
right: [img=right]http://example.com/image.jpg[/img]
thumbnail: [img=thumbnail]http://example.com/image.jpg[/img]
thumbnail left: [img=thumbnail-left]http://example.com/image.jpg[/img]
thumbnail right: [img=thumbnail-right]http://example.com/image.jpg[/img]
upload image
upload image ...
insert TeX code
[tex]TeX code[/tex]
insert code
[inlinecode]code[/inlinecode]
[code]code[/code]
[code=css]code[/code]
[code=html]code[/code]
[code=javascript]code[/code]
[code=perl]code[/code]
[code=php]code[/code]
[code=sql]code[/code]
[code=xml]code[/code]
:-)
;-)
:-P
:-D
:-|
:-(
:yes:
:no:
:ok:
:lol:
:lol2:
:lol3:
:cool:
:surprised:
:angry:
:crying:
:waving:
:confused:
:lookaround:
:clap:
:love:
:tick:
Message:
> Hello > > > I tried an upgrade from 2.4.24 to 2.5.3 on a staging site ( https://kigges.hwolf.de/ ) > > > > After this the upgrade script was ok, but now all date strings a strange like this: > > > > Forumszeit: %02.%08.%2022, %12:%Aug (Europe/Berlin) > > or > > Allgemeine Termine - holger, %09.%11.%2018, %13:%Nov […] [*] [○] [x] (Rund um Fußball) > > > > It's with also with the default theme. > > This has nothing to do with the theme in itself. The date format is defined in the language file. For gernam language these are the [link=https://github.com/ilosuna/mylittleforum/blob/9b1e5fafe6dd248278f025064ece9e23599bb1ff/lang/german.lang#L17]lines 17 and 18 in lang/german.lang[/link]. > > How I searched for the cause: > > In the version 20220529.1 the single entry page uses the key [inlinecode]time_format_full[/inlinecode] [link=https://github.com/ilosuna/mylittleforum/blob/9b1e5fafe6dd248278f025064ece9e23599bb1ff/includes/entry.inc.php#L54]to format the time[/link]. That does it since ages. But because of t[link=https://www.php.net/manual/en/function.strftime.php]he deprecation of the function [inlinecode]strftime[/inlinecode][/link] we moved to the [link=https://www.php.net/manual/en/function.date.php]PHP-function [inlinecode]date[/inlinecode][/link] with the first version of the 2.5-branch, which was 20220508.1. > > For comparision reasons: > > - [link=https://github.com/ilosuna/mylittleforum/blob/5ce298180df4ef7909dda93f7b46725b602e2855/includes/functions.inc.php#L1658]the code line #1658 in functions.inc.php of version 2.4.24[/link] > - [link=https://github.com/ilosuna/mylittleforum/blob/d049b498abea82cf3c0e69de441c936d4b757383/includes/functions.inc.php#L1677]the corresponding code line #1677 in functions.inc.php of version 20220508.1 (2.5.0)[/link] > > While [inlinecode]strftime[/inlinecode] wanted the (german) full date format in the format [inlinecode]%A, %d.%m.%Y, %H:%M[/inlinecode], the function [inlinecode]date[/inlinecode] wants it as [inlinecode]l, d.m.Y, H:i[/inlinecode]. And that difference tells me, that you forgot to upload the language files (at least) for the new version. > > Tschhö, Auge
E-mail notification on reply of this posting
OK - Submit
Preview