Open HorstBaumann opened 7 years ago
which PHP and TYPO3 version you are using?
here is settings the month name, i don't actually understand why those entries shows wrong values. https://github.com/midhundevasia/typo3-blogmaster/blob/master/Classes/Controller/PostController.php#L123
anyway let me inspect that whether it reproducible.
PHP 5.5.28 TYPO3 7.6.12
I made a test on PHP 5.5 and TYPO3 7.6.12 its working fine. I think you forget to add the locale settings there in TypoScript.
locale = de_DE
https://github.com/midhundevasia/typo3-blogmaster/wiki/TypoScript-Settings#locale--locale
timezone = Europe/Berlin
https://github.com/midhundevasia/typo3-blogmaster/wiki/TypoScript-Settings#timezone--timezone-for-php-and-javascript
please report if this still exists.
yes, it still exists.
But I was able to locate it ;-)
"Classes/Controller/PostController.php" Line: 123
$monthName[$i] = strftime($i . ' %b', strtotime('20-' . $i . '-1900'));
seems to create the Problem
I changed it to:
$monthName[$i] = strftime($i . ' %b', mktime(0,0,0,$i, 1, date('Y')));
and because the doubling of month_number + month_name is a littel confusing, I've shortened it to:
$monthName[$i] = strftime('%b', mktime(0,0,0,$i, 1, date('Y')));
the only problem now is:
months with special letters ("Mar" >in german "Mär") does not appear (but is selectable)
and another phenomenon: after selecting - the Month appears as "undefined", but after pressing the Update button - everything is fine ;-)
Am using a split function to extract the month name from the selected option text, so while removing that month_number the function do not return the month_name ;)
will fix that month name error on the next release 1.0.7
there's a little bug in the new added Date-Editing-Section. The DropDown lists 12 entries (months) - but always followed by a "Jan". After selecting one enty (e.g. 9 > September) and click on OK - it is stored as January...![2016-12-04_12h08_22](https://cloud.githubusercontent.com/assets/11771888/20865748/1c8954ac-ba1b-11e6-8e03-2c12b1b8b84e.png)
is it possible to use the TYPO3 own Dateselector ?![2016-12-04_12h15_38](https://cloud.githubusercontent.com/assets/11771888/20865761/664f67de-ba1b-11e6-933e-d928debe6562.png)