Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: weird issue with service key expirationDate format #7688

Merged
merged 4 commits into from
Apr 23, 2024

Conversation

doncicuto
Copy link
Contributor

In #7686 @jbvv1 detected and issue with how the expiration dates for service users keys are displayed. For 12/31/2024 date it showed 12/31/2025.

As discussed in #7686 the date was correctly sent to backend and backend did store the date correctly but when the frontend showed the date it was wrong. I've checked that it was an issue with the pattern I've used: localizedDate: 'EEEE dd. MMM YYYY, HH:mm' showed a wrong year so I've changed it to localizedDate: 'EEEE dd. MMM yyyy, HH:mm'

As this pattern was used in two other cases I've replaced them as well, as I understand that yyyy should be a safe choice for DatePipe (https://angular.io/api/common/DatePipe)

Here's a sample where 2025 is no longer shown (first row):
Captura desde 2024-04-02 09-10-24

Should close #7686

Definition of Ready

  • I am happy with the code
  • Short description of the feature/issue is added in the pr description
  • PR is linked to the corresponding user story
  • Acceptance criteria are met
  • All open todos and follow ups are defined in a new ticket and justified
  • Deviations from the acceptance criteria and design are agreed with the PO and documented.
  • No debug or dead code
  • My code has no repetitions
  • Critical parts are tested automatically
  • Where possible E2E tests are implemented
  • Documentation/examples are up-to-date
  • All non-functional requirements are met
  • Functionality of the acceptance criteria is checked manually on the dev system.

Copy link

vercel bot commented Apr 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2024 9:56am

@hifabienne hifabienne added the os-contribution This is a contribution from our open-source community label Apr 2, 2024
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.84%. Comparing base (cc56eea) to head (fcc7271).
Report is 394 commits behind head on main.

❗ Current head fcc7271 differs from pull request most recent head 836cb8f. Consider uploading reports for the commit 836cb8f to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #7688       +/-   ##
===========================================
+ Coverage   50.10%   62.84%   +12.73%     
===========================================
  Files        1244     1302       +58     
  Lines      117337   107370     -9967     
===========================================
+ Hits        58788    67472     +8684     
+ Misses      55594    36023    -19571     
- Partials     2955     3875      +920     
Flag Coverage Δ
core-integration-tests-postgres 62.84% <ø> (+38.40%) ⬆️
core-unit-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@peintnermax peintnermax left a comment

Choose a reason for hiding this comment

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

@doncicuto amazing.. thx for the contribution 😎

@peintnermax peintnermax enabled auto-merge (squash) April 23, 2024 09:49
@peintnermax peintnermax merged commit 9fa90e0 into zitadel:main Apr 23, 2024
25 checks passed
Copy link

🎉 This PR is included in version 2.51.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend os-contribution This is a contribution from our open-source community released
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: (Console) Key creation dialog and table show incorrect expiration date
4 participants