Skip to content

fix: LastModifiedDate in collaboration service#11328

Merged
mklos-kw merged 1 commit intomasterfrom
fix/ocisdev-10
May 21, 2025
Merged

fix: LastModifiedDate in collaboration service#11328
mklos-kw merged 1 commit intomasterfrom
fix/ocisdev-10

Conversation

@mklos-kw
Copy link
Member

@mklos-kw mklos-kw commented May 19, 2025

Description

Fix regression in collaboration service, missing LastModifiedDate

Related Issue

  • Fixes issue OCISDEV-10

Motivation and Context

How Has This Been Tested?

  • collaboration unit tests

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs
Copy link

update-docs bot commented May 19, 2025

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@mklos-kw mklos-kw force-pushed the fix/ocisdev-10 branch 3 times, most recently from d735e17 to ffc1aa2 Compare May 19, 2025 16:47
@mklos-kw mklos-kw requested a review from 2403905 May 19, 2025 16:48
@mklos-kw mklos-kw requested a review from jvillafanez May 20, 2025 07:41

lastModifiedTime := time.Now().UTC().Format(timeFormat)
if statRes.GetInfo().GetMtime() != nil {
lastModifiedTime = time.Unix(int64(statRes.GetInfo().GetMtime().GetSeconds()), 0).UTC().Format(timeFormat)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we ignore the GetNanos() if the template supports the micro seconds? "2006-01-02T15:04:05.0000000Z"

Copy link
Member Author

@mklos-kw mklos-kw May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nanos can be added. In the test case the Version looks like ignoring Nanos too and may change in test including Nanos. I need to double check in MS reference.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sonarqubecloud
Copy link

@mklos-kw mklos-kw merged commit 56a681d into master May 21, 2025
4 checks passed
@github-actions github-actions bot deleted the fix/ocisdev-10 branch September 25, 2025 00:24
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.

3 participants