nextcloud / nextcloud/tasks

Task's start/due date timestamp gets cut off

Open
#2,181 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
706
Forks
117
Avg merge
8h 50m
Merged PRs (30d)
18

Description

Steps to reproduce
  1. Create a task with a start or due date at a specific time.
  2. Ensure your browser window is wide enough for the full date and time to show.
  3. Observe the time being cut off.
Expected behaviour

The full date should be visible if there's enough room.

Actual behaviour

The timestamp gets cut off
image

Similarly, the date switches to the short version a little prematurely when the browser window is small, due to the menu on the left being collapsed allowing for more space.
image

Server configuration

Operating system: Ubuntu 22.04

Web server: Nginx

Database: MySQL

Nextcloud version: 25.0.2

Tasks version: 0.14.5

Updated from an older Nextcloud or fresh install: Updated from 24.0.8

No errors have been found.

Nextcloud configuration:

<?php
$CONFIG = array (
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' =>
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'log_type' => 'file',
  'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
  'logfilemode' => 416,
  'instanceid' => '[redacted]',
  'passwordsalt' => '[redacted]',
  'secret' => '[redacted]',
  'trusted_domains' =>
  array (
    0 => '[redacted]',
  ),
  'datadirectory' => '[redacted]',
  'dbtype' => 'mysql',
  'version' => '25.0.2.3',
  'overwrite.cli.url' => '[redacted]',
  'dbname' => '[redacted]',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '[redacted]',
  'dbpassword' => '[redacted]',
  'installed' => true,
  'maintenance' => false,
  'overwriteprotocol' => 'https',
  'default_phone_region' => 'us',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '[redacted]',
  'mail_domain' => '[redacted]',
  'mail_smtphost' => '[redacted]',
  'mail_smtpport' => '[redacted]',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '[redacted]',
  'mail_smtppassword' => '[redacted]',
  'mail_smtpsecure' => 'tls',
  'loglevel' => 2,
  'mail_smtpauthtype' => 'LOGIN',
);

Are you using external storage, if yes which one: Local

Are you using encryption: yes

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Firefox Developer Edition 110.0b3, Ungoogled Chromium 109.0.5414.74

Operating system: Arch Linux

Browser log (Firefox)
Loading failed for the <script> with source “https://[redacted]/cdn-cgi/apps/head/4NQY5doIR_Bal8v53SYPBIBFYEI.js”. [tasks:15:1](https://[redacted]/index.php/apps/tasks/#/calendars/tasks)

Content Security Policy: The page’s settings blocked the loading of a resource at https://[redacted]/cdn-cgi/apps/head/4NQY5doIR_Bal8v53SYPBIBFYEI.js (“script-src”).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the task start/due date display in the Tasks app at wide and narrow browser widths, including with the left menu collapsed. Trace the frontend entry point that formats and lays out task timestamps. Done means the full date and time remains visible when space allows, while the short format appears only when the available width requires it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.