Skip to content

Invalid time since creation/update in resource metadata display #4835

@ssssarah

Description

@ssssarah

Describe the bug
A resource's "Created at" and "Updated at" is formatted in a user-friendly (difference between current datetime and the datetime of the event + months/day/hour/min conversion) way. I think this is just a particular value of this difference that leads to a not-so-great display but it shows "0 months".

What part of Nexus is affected

  • Fusion
  • Delta
  • CLI
  • Documentation

To Reproduce
Steps to reproduce the behavior, e.g. for Fusion:
(This may not be visible by the time of reproduction)

  1. Go to https://bbp.epfl.ch/nexus/web/bbp/mmb-point-neuron-framework-model/resources/https%3A%2F%2Fbbp.epfl.ch%2Fdata%2Fbbp%2Fmmb-point-neuron-framework-model%2F367bc36a-d253-47ab-8bb4-af631895758b

For information this was noticed on April 4th, 2024 and the creation date is March 5th, 2024.
So it is at the limit between displaying in days, and displaying in months.

Screenshots
Screenshot 2024-04-04 at 10 56 18

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions