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,706
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 (2026-06-19 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,608
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,706
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 2026-06-18 08:11:51

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,706
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 2026-06-19 07:54:06

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,706
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

#6 Yesterday 17:45:54

adamishere
New Member
Registered: 2026-06-14
Posts: 2

Re: [solved] Date posted puzzlement

Maybe related to this bug – but I’ve been bringing over some old content to a new site that is built in TXP. I would like to preserve my original publish dates – but when I try to manually set them in the Write panel, the articles can never be saved. I always get the red alert box in the lower corner. Have tried inspecting browser console and network requests, but to no avail.

Offline

#7 Yesterday 22:20:20

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,318
Website Mastodon

Re: [solved] Date posted puzzlement

adamishere wrote #343470:

Maybe related to this bug – but I’ve been bringing over some old content to a new site that is built in TXP. I would like to preserve my original publish dates – but when I try to manually set them in the Write panel, the articles can never be saved. I always get the red alert box in the lower corner. Have tried inspecting browser console and network requests, but to no avail.

Have you put your site into debug mode? what errors are you getting?


…. texted postive

Offline

#8 Today 00:13:31

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

Re: [solved] Date posted puzzlement

@ adamishere,

First, welcome around!

Can you tell us what exactly the alert message tells you? Other questions: what is the site configuration: which version of PHP, with database (MySQL, MariaDB) ? you can pickup all that on the Diagnostics panel.

And as bici mentions, can you set your site in debug mode (Admin > Preferences > Site) and see if additional information appears?


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

Offline

#9 Today 02:26:54

adamishere
New Member
Registered: 2026-06-14
Posts: 2

Re: [solved] Date posted puzzlement

Therein could be the rub – as I’m using MariaDB 11.7.2.

I’ve been in debug mode for awhile, and have those logs from the page source. I could share some of those if people think it might help.

Thank you for the welcome – and thank you very much those who are taking a look at this! It is good to feel welcomed on the Internet these days!

Textpattern version: 4.9.1 (84a30a58a5375ba307e2053d0b2c6dcd263eae46850f1e1f)
Last update: 2026-02-14 17:01:39
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: section_category_title
Production status: debug
Temporary directory path: /home/tmp
PHP version: 8.4.22-nfsn1
GD Graphics Library: 2.3.3; Supported formats: GIF, JPEG, PNG, WebP.
Server time zone: America/Chicago
Server local time: 2026-07-12 21:16:55
Daylight Saving Time enabled?: 1
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): America/Chicago (-21600)
MySQL: 11.7.2-MariaDB-ubu2404 (mariadb.org binary distribution) 
Database server time: 2026-07-13 02:16:55
Database server time offset: 0 s
Database server time zone: SYSTEM
Database session time zone: SYSTEM
Locale: en_US.UTF-8
Site / Admin language: en / en
Web server: Apache
PHP server API: NFGI
PHP SSL version: OpenSSL 1.1.1w  11 Sep 2023
RFC 2616 headers: 
Server OS: FreeBSD 14.4-STABLE
Admin-side theme: hive 4.9.1

Offline

#10 Today 03:03:55

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

Re: [solved] Date posted puzzlement

Aha, MariaDB version 11.x There have been some reports about date / time problems with those. (This thread amongst them).

The good news, it might be solved in recent builds of Textpattern 4.9.2-dev. You can get it here: github.com/textpattern/textpattern/tree/4.9.x click on the green “code” button to download the zip. Save to use on a live site.


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

Offline

#11 Today 09:24:13

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,901
GitHub

Re: [solved] Date posted puzzlement

adamishere wrote #343474:

Thank you for the welcome – and thank you very much those who are taking a look at this! It is good to feel welcomed on the Internet these days!

You’re in a really good position, actually – a new (virtual) face around here, and a useful data point for some snagging we’re trying to nail down and fix for the upcoming 4.9.2 release.

Thanks for letting us know about your issue, I’m confident we can get it sorted sooner rather than later.

Offline

Board footer

Powered by FluxBB