Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] ob1_modified

#13 2005-05-22 17:33:42

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [archived] ob1_modified

doggiez,
I tested on my dev site and it outputs everything correctly. Time added is correct, modified time is correct. I did a SVN some days back and I use the same settings as you (GMT+1, daylights on).

So sounds like a problem with your host. Anyone else had the same problem?


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#14 2005-05-22 18:55:07

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] ob1_modified

I’ll wait for tomorrow and see if the date changes again.

Offline

#15 2005-05-23 15:34:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] ob1_modified

Today the output is 23-5-05 12:00
Date last modified is still 21-5-05 14:20

I think the 1:40 time difference is a problem with my host. But the fact that it shows today’s date can hardly be, can it?

This is what’s in the article: <code><txp:ob1_modified format=“j-n-Y h:i” /></code>.

Any ideas?

EDIT: I see that it should be H, and not h, but I’m not going to change it until I know what’s wrong.
I also put the same tag in an article on another site, with another host. Tomorrow we will know if it’s a host thing or not…

Last edited by doggiez (2005-05-23 15:48:29)

Offline

#16 2005-05-23 15:39:45

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [archived] ob1_modified

Its because its still using the old date format. Textpattern changed how it makes date/times in RC3.

Offline

#17 2005-05-23 15:49:54

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] ob1_modified

> mary wrote:

> Its because its still using the old date format. Textpattern changed how it makes date/times in RC3.

So is it something I have to change in my tag, or is it the plugin code?

Offline

#18 2005-05-23 22:17:20

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [archived] ob1_modified

mary,

Actually version 0.5 uses the correct date and not the “old way” that worked pre RC3. However, if you want another dateformat then set in the preferences you can write your own format using the standard PHP date format as noted in the documentation for the plugin and since this is an optional parameter I currently don’t see the point of altering this to some other format. Sure, it is not localized as the date is now in TXP in general, but …

doggiez,

Now I’ve tried my plugin on my dev server back and forth with different types of dates and using the pre-set one for the archive date format and it works like a charm for me. Which makes your problem even more puzzling.

  • On the article at hand, does the admin interface write out correct modified dates?
  • What happens if you use author="1"? Does it output the correct author name here?

Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#19 2005-05-24 14:26:07

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] ob1_modified

<code><txp:ob1_modified author=“1” /></code> doesn’t output anything, so I tried <code><txp:ob1_modified format=“author” /></code>, as said in the plugin help.

I now have this:
<code><txp:ob1_modified format=“j-n-Y H:i” /> by <txp:ob1_modified format=“author” /></code>

Output:
24-5-2005 00:00 by amu3112oTue, 24 May 2005 00:00:00 +0200

So always today’s date (well of course I modified it again today) and 00:00. It’s here.

On another site, another host, the date outputs the correct date last modified, but author gives me this:
pmu3104oTue, 24 May 2005 16:10:11 +0200

On both sites, author should be ‘Els’.
I’ll ask the host of the first site about the date and time problem, it’s clearly not the plugin. And I wasn’t going to use author, so no problem for me, but that does seem to be a plugin code thing.

The admin interface shows the correct date formats.

EDIT: does it matter that I put the tag in an article? Should it rather be in an article form?

EDIT again: putting it in a form at least gives me the same time as in the write tab instead of 00:00 …

Last edited by doggiez (2005-05-24 15:03:12)

Offline

#20 2005-05-24 21:18:26

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [archived] ob1_modified

doggiez,

In an article form it works. In an article it does not.

everyone else,

And I get the same with author, I am investigating that problem right now.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#21 2005-05-24 21:25:25

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] ob1_modified

> obeewan wrote:

> In an article form it works. In an article it does not.

Then that was my problem. Thank you!

Offline

#22 2005-05-24 21:45:35

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [archived] ob1_modified

doggiez,

Just happy we cleared the problem. And it was intended to be an article form tag. I might want to specify that in the help text.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#23 2005-05-24 23:10:58

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [archived] ob1_modified

“Actually…”

:D I’ll shut-up now… maybe…

Offline

#24 2005-05-24 23:43:20

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [archived] ob1_modified

No worries mary. And if I sounded too uptight on that remark gimme a slap ;)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

  1. Index
  2. » Archives
  3. » [archived] ob1_modified

Board footer

Powered by FluxBB