Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-08-30 20:58:28

jorn
New Member
Registered: 2005-08-29
Posts: 7

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

okay i tried some other things and now it works with the following:

<txp:php>$hours = -21600; global $dateformat; echo safe_strftime($dateformat, time() + $hours); </txp:php>

and then the clock goes back 6 hours. isnt that strange?

Offline

#14 2005-08-30 21:48:50

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

Looks as if your hours aren’t hours but seconds: 6*60*60=21600

Offline

#15 2005-08-30 21:56:01

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

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

Crap-diddy-do-dah. Where is my brain…

bc..<txp:php>
$hours = -2;
global $dateformat;
echo safe_strftime($dateformat, time() + ($hours * 3600));
</txp:php>

I repeat: the offset is not the gmt offset, but your ‘offset’ from your server’s time.

Offline

#16 2005-08-30 22:10:06

jorn
New Member
Registered: 2005-08-29
Posts: 7

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

no problem now it works! thank you so much.

Offline

#17 2005-09-06 02:35:07

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

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

> mary wrote:

> upm_datetime v.0.4
Display current date/time.

Hi mny thx. Any chance you can provide an example, in the HELP , of what the tag will look like once it added to our pages.


…. texted postive

Offline

#18 2005-09-06 03:12:27

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

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

Well, the current date/time… ? How does your date/time appear for your articles?

Offline

#19 2005-09-06 03:37:42

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

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

Hi Mary – i fiqured it out by going to the discusion lists on yr site. What i meant was; why not add this to the help screen:
<code><txp:upm_datetime /></code.

and perhaps an example with an option. Not all of us a expert txp users.

again many thanks for the plug-in, works as advertised! ;-)


…. texted postive

Offline

#20 2005-09-06 04:06:43

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

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

Oh, it is (view source), I only just noticed that I forgot to escape it properly. I will do that asap. :)

Offline

#21 2006-01-12 02:42:17

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

Anyone got a replacement for this one?

Offline

#22 2006-01-12 03:16:34

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

Does it no longer work?


Shoving is the answer – pusher robot

Offline

#23 2007-05-11 05:38:44

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

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

v.0.5

Last edited by Mary (2013-01-24 17:22:53)

Offline

#24 2007-05-11 06:30:37

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

Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.

Mary wrote:

v.0.5

many thanks mary. installed and all is ok.


…. texted postive

Offline

Board footer

Powered by FluxBB