Replace REQUEST_TIME and time() in tests

Created on 11 December 2020, almost 5 years ago
Updated 19 August 2025, about 1 month ago

REQUEST_TIME and time is a deprecated global. There are several issues to remove it's use in core.

This issue is to remove it from just tests.

Proposed resolution
- Adjust KTB and BTB to add the service as a protected method
- Adjust KTB and BTB to add a protected variable for the request time
- This one of these throughout the tests

Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Core API

Created by

πŸ‡ΊπŸ‡¦Ukraine AndrewsizZ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024