Skip to content

Conversation

@nijel
Copy link
Member

@nijel nijel commented Sep 18, 2025

The values like "month ago" don't give really a good idea when the change happened.

Work in progress: This needs user selectable timezone to make it nicer to user.

@nijel nijel added this to the 5.14 milestone Sep 18, 2025
@nijel nijel self-assigned this Sep 18, 2025
@nijel nijel modified the milestones: 5.14, 5.15 Oct 9, 2025
@github-actions
Copy link

github-actions bot commented Nov 9, 2025

This pull request has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Will be closed when no feedback arrives. label Nov 9, 2025
The values like "month ago" don't give really a good idea when the
change happened.
@codecov
Copy link

codecov bot commented Nov 10, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
5136 1 5135 663
View the full list of 1 ❄️ flaky test(s)
weblate.trans.tests.test_templatetags.NaturalTimeTest::test_natural

Flake rate in main: 12.40% (Passed 106 times, Failed 15 times)

Stack Traces | 0.017s run time
self = <weblate.trans.tests.test_templatetags.NaturalTimeTest testMethod=test_natural>

    def test_natural(self) -> None:
        now = timezone.now()
        for diff, expected in TEST_DATA:
            testdate = now + datetime.timedelta(seconds=diff)
            result = naturaltime(testdate, now=now)
            expected = format_html(
                '<span title="{}">{}</span>',
                testdate.replace(microsecond=0).isoformat(),
                expected,
            )
>           self.assertEqual(
                expected,
                result,
                f"naturaltime({testdate}) {result!r} != {expected!r}",
            )
E           AssertionError: '<span title="2025-11-10T07:35:08+00:00">now</span>' != '<span title="2025-11-10T07:35:08+00:00">11/10/2025 7:35 a.m.</span>' : naturaltime(2025-11-10 07:35:08.504429+00:00) '<span title="2025-11-10T07:35:08+00:00">11/10/2025 7:35 a.m.</span>' != '<span title="2025-11-10T07:35:08+00:00">now</span>'

.../trans/tests/test_templatetags.py:73: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@github-actions github-actions bot removed the wontfix Will be closed when no feedback arrives. label Nov 11, 2025
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

Successfully merging this pull request may close these issues.

1 participant