Skip to content

readableTimestamp function returns only the date; time component is missing #4635

@anirudhprasad-sap

Description

@anirudhprasad-sap

Description

HI Colleagues,

We are part of the CAP Operator module team and have developed several custom busola UIs for our CROs: https://github.com/SAP/cap-operator-lifecycle/tree/main/config/busola

Within these UIs, we use the readableTimestamp function to convert the resource creation timestamp into a human-readable format. However, when applying this function, only the date is displayed in the UI, while the time component is omitted entirely.

For example, consider the following code:

- name: Created
  source: $readableTimestamp($relatedJobs().items[metadata.labels.`sme.sap.com/workload-name` = $item.name and metadata.labels.`sme.sap.com/workload-type` = $item.type].metadata.creationTimestamp)

results in

Image

Only the date is displayed, while the time component is missing, which makes troubleshooting and issue analysis more difficult. We reviewed the documentation but did not find any alternative function that includes the time.

Although we found getReadableTimestampWithTime in the source code, it does not appear to be publicly exposed for external use.

Technical details:
Kubernetes Version: v1.33.7
API Server Address: https://api.e578c5e.stage.kyma.ondemand.com/

Expected result

We would appreciate it if the existing function could be enhanced or if a new function could be introduced to display both the date and time components in the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/busola/extensibilityIssues or PRs related to Busola Extensibility Featurekind/bugCategorizes issue or PR as related to a bug.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions