Fix wrong assumption on handling counting times when autotranslating
"after <month>"
This commit is contained in:
@ -637,12 +637,6 @@ final class NodaTimeAutotranslater {
|
||||
if (empty(trim($timeInfo['zeit_zaehlzeit_monat'], " ,.;0"))) {
|
||||
$timeInfo['zeit_beginn'] = strval(intval($timeInfo['zeit_beginn']) - 1);
|
||||
}
|
||||
else if (empty(trim($timeInfo['zeit_zaehlzeit_tag'], " ,.;0"))) {
|
||||
$timeInfo['zeit_zaehlzeit_monat'] = strval(intval($timeInfo['zeit_zaehlzeit_monat']) - 1);
|
||||
}
|
||||
else {
|
||||
$timeInfo['zeit_zaehlzeit_tag'] = strval(intval($timeInfo['zeit_zaehlzeit_tag']) - 1);
|
||||
}
|
||||
# else throw new Exception("Unhandled split case. Counting time is: " . var_export($timeInfo, true));
|
||||
$innerTimeInfo = $timeInfo;
|
||||
$innerTimeInfo['zeit_ende'] = $timeInfo['zeit_beginn'];
|
||||
|
Reference in New Issue
Block a user