Konstantin OstrovskiiandKonstantin Ostrovskii 17aae059c3 Replace isRelativeDay with date-fns isYesterday (#8286)
* Fix isRelativeDay returning wrong result across month boundaries

isRelativeDay compared the target date's day-of-month against the raw
`getDate() + offsetInDays` value instead of the day after setDate()
normalizes it. On the 1st of a month that raw value is 0 (or negative),
so a date that really is "yesterday" (the last day of the previous month)
was never matched. This made the "Yesterday" grouping in the Upcoming
Episodes view fall back to a full date on the 1st of every month.

Compare against yesterday.getDate() after the setDate() adjustment so the
month/year rollover is respected. Add unit tests covering the same-month,
month-boundary and year-boundary cases for -1/0/+1 offsets.

* Replace isRelativeDay with date-fns isYesterday

Both call sites only ever asked for an offset of -1, so drop the custom
helper and use date-fns instead, per review feedback.

---------

Co-authored-by: Konstantin Ostrovskii <4070730+Grinv@users.noreply.github.com>
2026-10-21 13:42:06 -04:00
2023-03-10 12:32:06 -05:00
2026-08-06 10:17:19 +09:00
2024-09-11 10:29:30 -04:00
2026-06-30 13:07:24 -04:00
2026-07-10 08:47:19 -04:00
…
2026-03-19 12:53:21 -04:00
2023-05-02 16:44:07 -04:00
2025-12-03 17:53:19 -05:00
2025-03-25 15:36:32 -04:00
2025-03-25 15:36:32 -04:00

Jellyfin Web

Part of the Jellyfin Project


Logo Banner

GPL 2.0 License Current Release Translation Status
Donate Feature Requests Chat on Matrix Join our Subreddit

Jellyfin Web is the frontend used for most of the clients available for end users, such as desktop browsers, Android, and iOS. We welcome all contributions and pull requests! If you have a larger feature in mind please open an issue so we can discuss the implementation before you start. Translations can be improved very easily from our Weblate instance. Look through the following graphic to see if your native language could use some work!

Detailed Translation Status

Build Process

Dependencies

  • Node.js
  • npm (included in Node.js)

Getting Started

  1. Clone or download this repository.

    git clone https://github.com/jellyfin/jellyfin-web.git
    cd jellyfin-web
    
  2. Install build dependencies in the project directory.

    npm install
    
  3. Run the web client with webpack for local development.

    npm start
    
  4. Build the client with sourcemaps available.

    npm run build:development
    

Review the Contributing Guide for more information on our process and tech stack.

Languages
JavaScript 43.9%
TypeScript 29.4%
SCSS 22.4%
HTML 4.2%