Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Dodavanje vremena

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 27.03.2008 20:44    Post subject: Dodavanje vremena Add user to your forum ignore list Reply with quote

Dakle imam ovo u PHPu:

Code:
define('DATUM','%d/%m/%Y u %H:%M');


I sad hoću dodati 1 sat ovom %H jer mi prikazuje 1 sat unazad (ne znam zašto, joomlina komponenta). Kako to napraviti?
Back to top
View user's profile Send private message Twitter profile
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 27.03.2008 22:02    Post subject: Add user to your forum ignore list Reply with quote

Miriši na to da se ta DATUM konstanta samo predaje dalje date() funkciji, tj. da s njom samo
definiraš format ispisa...

Kako izgleda kôd koji zapravo generira datum?

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 27.03.2008 22:04    Post subject: Add user to your forum ignore list Reply with quote

$signtime = strftime(_DATUM,$ecrow->ecdate + ($mosConfig_offset*60*60));


Ja sam nasao nes, al ne znam kak sad to implementirat (ak je to uopce to):
http://www.php.net/function.time
I sad još gledam, vjerojatno nešto ovaj strftime radi probleme Smile
Ukoliko ubacim gmstrftime, onda pokazuje 2 sata unazad, hehe...

btw. zyt, daj neki skajp ili icq da te mogu pitat takve sitnice, ako moze Smile

EDIT broj 5: Uspio sam, dakle, jedan *60 manje i to je to Very Happy Bravo ja, hehe...
Back to top
View user's profile Send private message Twitter profile
tic984



Joined: 07 Sep 2003
Posts: 189
Location: Delnice

PostPosted: 27.03.2008 23:59    Post subject: Add user to your forum ignore list Reply with quote

hm, a da si definiras time zone?

http://www.php.net/manual/en/function.date-default-timezone-set.php

_________________
ah..
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group