Date format corrupt after upgrading to CPG 1.6 Date format corrupt after upgrading to CPG 1.6
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Date format corrupt after upgrading to CPG 1.6

Started by Aurel Klatik, August 02, 2025, 08:53:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Aurel Klatik

I have upgraded from CPG 1.5 to 1.6 and found the date format changed everywhere and displays like this:
%06. %922 %2025

Language is set Slovak
Character set is Unicode (utf-8)
I have not found where date format setting might be.
Any hint much appreciated.


406man

Date formats changed with version 1.6.
The way dates and times are displayed is defined in the language files. It seems that the language files for Slovak and many other languages have not been updated to suit the change.
The file that needs to be changed is slovak.php in the lang folder. Around lines 43 to 52 are the various definitions.

Definitions in the new format can be found in english.php

Hopefully you can use them to figure out what they need to be in the Slovak language. Use something like Windows Notepad to make the change. I use the free pspad editor which is excellent.

When you've finished perhaps you could attach the finished version of slovak.php here so the developers can add it to the next release.

Aurel Klatik

thank you
I have updated lang/Slovak.php
it works with local date formats
use as is or edit lines 43 thru 50 as required