[PR #567] [MERGED] feat: Add ability to display year only when it is not the current year #1045

Closed
opened 2026-02-04 21:46:07 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/plankanban/planka/pull/567
Author: @eternity1984
Created: 12/18/2023
Status: Merged
Merged: 12/20/2023
Merged by: @meltyshev

Base: masterHead: feat-display-year


📝 Commits (2)

  • 7623ae3 feat: Add ability to display year only when it is not the current year
  • a7b3bf7 ref: Refactoring

📊 Changes

21 files changed (+60 additions, -4 deletions)

View changed files

📝 client/src/components/CardModal/Activities/Item.jsx (+2 -1)
📝 client/src/components/CardModal/Activities/ItemComment.jsx (+2 -1)
📝 client/src/components/DueDate/DueDate.jsx (+16 -2)
📝 client/src/locales/cs/core.js (+2 -0)
📝 client/src/locales/da/core.js (+2 -0)
📝 client/src/locales/de/core.js (+2 -0)
📝 client/src/locales/en/core.js (+2 -0)
📝 client/src/locales/es/core.js (+2 -0)
📝 client/src/locales/fr/core.js (+2 -0)
📝 client/src/locales/it/core.js (+2 -0)
📝 client/src/locales/ja/core.js (+2 -0)
📝 client/src/locales/ko/core.js (+2 -0)
📝 client/src/locales/pl/core.js (+2 -0)
📝 client/src/locales/ro/core.js (+2 -0)
📝 client/src/locales/ru/core.js (+2 -0)
📝 client/src/locales/sk/core.js (+2 -0)
📝 client/src/locales/sv/core.js (+2 -0)
📝 client/src/locales/tr/core.js (+2 -0)
📝 client/src/locales/uz/core.js (+2 -0)
📝 client/src/locales/zh/core.js (+2 -0)

...and 1 more files

📄 Description

Added fullDate and fullDateTime parameters.
Please let me know if the datetime format is incorrect.

Related to #73

When a date is outside the current year, show the year
so, if the due date is on the January 13 2021, leave it like it is now, Jan 13, but if it's, for example, January 13 2022, also show the date: Jan 13 2022)

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/plankanban/planka/pull/567 **Author:** [@eternity1984](https://github.com/eternity1984) **Created:** 12/18/2023 **Status:** ✅ Merged **Merged:** 12/20/2023 **Merged by:** [@meltyshev](https://github.com/meltyshev) **Base:** `master` ← **Head:** `feat-display-year` --- ### 📝 Commits (2) - [`7623ae3`](https://github.com/plankanban/planka/commit/7623ae316dc740051d1a47477e46edc42eb0563a) feat: Add ability to display year only when it is not the current year - [`a7b3bf7`](https://github.com/plankanban/planka/commit/a7b3bf781d48771f2feb8fcdc71f4ec307447172) ref: Refactoring ### 📊 Changes **21 files changed** (+60 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `client/src/components/CardModal/Activities/Item.jsx` (+2 -1) 📝 `client/src/components/CardModal/Activities/ItemComment.jsx` (+2 -1) 📝 `client/src/components/DueDate/DueDate.jsx` (+16 -2) 📝 `client/src/locales/cs/core.js` (+2 -0) 📝 `client/src/locales/da/core.js` (+2 -0) 📝 `client/src/locales/de/core.js` (+2 -0) 📝 `client/src/locales/en/core.js` (+2 -0) 📝 `client/src/locales/es/core.js` (+2 -0) 📝 `client/src/locales/fr/core.js` (+2 -0) 📝 `client/src/locales/it/core.js` (+2 -0) 📝 `client/src/locales/ja/core.js` (+2 -0) 📝 `client/src/locales/ko/core.js` (+2 -0) 📝 `client/src/locales/pl/core.js` (+2 -0) 📝 `client/src/locales/ro/core.js` (+2 -0) 📝 `client/src/locales/ru/core.js` (+2 -0) 📝 `client/src/locales/sk/core.js` (+2 -0) 📝 `client/src/locales/sv/core.js` (+2 -0) 📝 `client/src/locales/tr/core.js` (+2 -0) 📝 `client/src/locales/uz/core.js` (+2 -0) 📝 `client/src/locales/zh/core.js` (+2 -0) _...and 1 more files_ </details> ### 📄 Description Added fullDate and fullDateTime parameters. Please let me know if the datetime format is incorrect. Related to #73 > When a date is outside the current year, show the year so, if the due date is on the January 13 2021, leave it like it is now, Jan 13, but if it's, for example, January 13 2022, also show the date: Jan 13 2022) <img width="795" alt="image" src="https://github.com/plankanban/planka/assets/34591767/89d5c64f-86a9-4375-b1d9-4620154a1c47"> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:46:07 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#1045