Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2026-06-17 07:35:21

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,691
Website

[solved] Date posted puzzlement

I can only reproduce this on localhost…, and only one install (both tested installs running 4.9.2-dev and PHP 8.5.x)

  • start an article, set some fields (status, category, section, a couple of CF)
  • save, status is “live”
  • Above the body field, notice the date: it has both the posted dated and the last modified datestamp.

Note: at this point the article has been saved only once

Oddities

  1. a modified datestamp is inserted even as the article has only be saved once.
  2. the modified datestamp is 2 minutes later then the posted datestamp – Posted: 2026-06-15 17:18:22, modified 2026-06-15 17:20:16 as given in the datebase.

TXP4.9.2-dev localhost, PHP 8.5.7, MySql 8.4.7

Server time zone: Asia/Tokyo
Server local time: 2026-06-15 17:57:48
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 0
Time zone (GMT offset in seconds): Asia/Tokyo (32400)
MySQL: 8.4.7 (MySQL Community Server - GPL) 
Database server time: 2026-06-15 17:57:48
Database server time offset: 0 s
Database server time zone: SYSTEM
Database session time zone: SYSTEM

Last edited by phiw13 (Today 07:53:33)


In low-power mode.
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#2 2026-06-17 10:20:36

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,600
Website GitHub

Re: [solved] Date posted puzzlement

This might be related to what Oleg discovered. Maybe the issue is that sometimes records are getting a Modified datestamp from the get-go. But it’s puzzling that you’re not seeing any of those other date issues.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#3 2026-06-17 12:18:13

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,691
Website

Re: [solved] Date posted puzzlement

Bloke wrote #343369:

This might be related to “what Oleg discovered” […]

Interesting, I’ll test that tomorrow when sitting in front of the local server machine. Will report back.

And no otherwise I do not see other issues with posted, modified, expired dates – I’ve checked the date fields in the DB, the various place where a date is displayed (article Write or List panel, txp:posted format="xxx" and friends).


In low-power mode.
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#4 Yesterday 08:11:51

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,691
Website

Re: [solved] Date posted puzzlement

Some updates:

  • when toggling the “Set timestamp to now” to off (Unchecked) I can reproduce the issue on both the localhost server and the Live server. When It is checked, there are no problems (no modified date on first save) on the live server.
  • In a further test I used a macOS shortcut to insert a timestamp (hh:mm:ss) in the body field first thing when loading a blank Write panel, end then proceeded with filling title and body field and set some CF and other fields. Then the first save (Publish). Result: the posted date is virtually identical to the time stamp inserted, whereas the modified date shows the actual save timestamp. Possible reason: the few seconds is the time between the page load and me focussing the body field and triggering the shortcut.

In low-power mode.
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#5 Today 07:54:06

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,691
Website

Re: [solved] Date posted puzzlement

Problem(s) solved, mostly

  • when the checkbox “Set timestamp to now” is OFF and unchecked, the timestamp for “Publish date” is set at (blank) write panel load time. When ON, the timestamp is updated at the moment of first save.. Tha explains why I am seeing both a “Posted” and a “Modified” date stamp in the first case
  • the site where I first encounter the original issue has the “Set timestamp to now” checkbox set to OFF by default for this (test) site. Not sure how that happened.

Some plugin possibly. Investigating.


In low-power mode.
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB