Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Is it possible to change standard document creation time?
Avatar
kybernator #1
Member for 2 months · 1 post · Location: Germany
Group memberships: Members
Show profile · Link to this post
Subject: Is it possible to change standard document creation time?
Hello everybody,

I'm new here. I use dokuwiki as a fast and simple CMS and am very impressed so far. I am on shared hosting and have no root access, neither can I configure the Apache or the PHP on admin level.

I would very much like dokuwiki to do some time-travelling, by showing pages I created today as having been created yesterday. Is there a way to configure it like that?

My dformat is %Y-%m-%d, I am in GMT+1.

If there is a way to at least come near to showing every page as one day older than it actually is, I would also appreciate every advice.

Thanks a lot to those who will try to help!
Avatar
hansel #2
Member for 2 months · 8 posts · Location: Rotterdam, NL
Group memberships: Members
Show profile · Link to this post
To answer your question: yes it is possible. :-D

Why would you want to do that?
Interests: God, people and computers. Websites: business: www.mijnfijnesite.nl, hobby: www.hpelbers.org
Avatar
chi (Moderator) #3
Member since Jun 2006 · 1642 posts · Location: Munich Germany
Group memberships: Global Moderators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
Quote by hansel:
To answer your question: yes it is possible. :-D

Would you mind to enlighten us, just a "yes" doesn't help the one who asked the question, does it?
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
If my answer doesn't make sense maybe your question didn't either - just visit http://facepalm.org.
Avatar
hansel #4
Member for 2 months · 8 posts · Location: Rotterdam, NL
Group memberships: Members
Show profile · Link to this post
Hello Chi  and  kybernator,
Quote by chi:
just a "yes" doesn't help the one who asked the question, does it?

It's just that there are some ethical aspects involved in antedating...

For the default template, displaying the modification date is handled by tpl_pageinfo() in the file <DOKUWIKI>/inc/template.php. Some templates (mine is based on dokucms) have their own version (look in <DOKUWIKI>/lib/tpl/<YOUR TREMPLATE>/main.php).

replace
  1. $date = strftime($conf['dformat'],$INFO['lastmod']);
with
  1. $date = strftime($conf['dformat'],$INFO['lastmod'] -24*3600);

Have a good weekend!
  Hansel
Interests: God, people and computers. Websites: business: www.mijnfijnesite.nl, hobby: www.hpelbers.org
Avatar
hansel #5
Member for 2 months · 8 posts · Location: Rotterdam, NL
Group memberships: Members
Show profile · Link to this post
In reply to post #1
Quote by kybernator on 2010-01-29, 14:47:
I would very much like dokuwiki to do some time-travelling, by showing pages I created today as having been created yesterday. Is there a way to configure it like that?

My dformat is %Y-%m-%d, I am in GMT+1.
Another solution: set your time zone to GMT+25  :cool:

Enjoy!
Interests: God, people and computers. Websites: business: www.mijnfijnesite.nl, hobby: www.hpelbers.org
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20090606-dev, © 2003-8 by Yves Goergen
Current time: 2010-03-20, 13:07:58 (UTC +01:00)
WikiForumIRCBugsGitXRefTranslate