Skip to content

formatTimeSpan() and formatDateSpan() always present past time spans #6722

Description

@dartcafe

Maybe more a personal problem: When I want to calculate a time span via relative_modified_date() , the return value is always a span that directs to the past, even if the time span is in the future. Not sure, if this intended or if it could be enhanced.

public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) {

public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions