Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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
Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.
Anyone got a replacement for this one?
Offline
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
Re: [plugin] [ORPHAN] upm_datetime: Display current date/time.
…. texted postive
Offline