Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Russian\TimeSpeller::spellDifference, TimeSpeller::DIRECTION for time in future #92

Closed
askurihin opened this issue Aug 31, 2020 · 1 comment
Assignees

Comments

@askurihin
Copy link

Описание

При использовании Russian\TimeSpeller::spellDifference с аргументом TimeSpeller::DIRECTION время в будущем (с предлогом через) для 1-й минуты и секунды выводится неверно.

Как воспроизвести:

<?php
require __DIR__ . '/vendor/autoload.php';
echo morphos\Russian\TimeSpeller::spellDifference(time() + 61, morphos\TimeSpeller::DIRECTION);  

Выводит через 1 минута (тоже самое для секунд)

Ожидаемый вывод:

через 1 минуту

@wapmorgan
Copy link
Owner

Обновлено в dev-master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants