Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

When a CSV row has no created or modified value, weblinks:sync-csv --action=import uses date('Y-m-d H:i:s'), i.e. the server's local time zone. Joomla stores all dates in UTC, so on servers whose PHP time zone is not UTC the imported weblinks get dates that are shifted by the UTC offset.

The defaults now use gmdate('Y-m-d H:i:s').

Testing Instructions

  • Set date.timezone of the CLI PHP to e.g. Europe/Berlin.
  • Import a CSV with an empty created and modified column via php cli/joomla.php weblinks:sync-csv --action=import --file=<file>.
  • Check the dates of the imported weblinks in the backend.

Expected result

The dates correspond to the time of the import.

Actual result

The dates are off by the UTC offset of the server time zone.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment