Elxis CMS Forum

Support => General => Topic started by: armpouniotis on February 18, 2009, 13:07:21

Title: Display date - time
Post by: armpouniotis on February 18, 2009, 13:07:21
Hi all !

how can i display the date - time in greek in 24 hours format, using php ?

Thank you in advance

Chris
Title: Re: Display date - time
Post by: Ivan Trebješanin on February 18, 2009, 13:15:07
Hi armpouniotis, date and time are server issue. So, Your server must have installed your localization (Greek). Like "language Settings" on Windows. :)
Title: Re: Display date - time
Post by: Farhad Sakhaei on February 18, 2009, 14:05:25
Hi all !

how can i display the date - time in greek in 24 hours format, using php ?

Thank you in advance

Chris

In Where ?
Which dates/times ?
Title: Re: Display date - time
Post by: armpouniotis on February 18, 2009, 22:44:51
When i am posting new content items
Title: Re: Display date - time
Post by: ks-net on February 18, 2009, 23:48:35
Quote
Hi armpouniotis, date and time are server issue. So, Your server must have installed your localization (Greek). Like "language Settings" on Windows.
ivan had allready answered ... your server's php needs the greek locale
Title: Re: Display date - time
Post by: Farhad Sakhaei on February 19, 2009, 01:59:34
I think you mean want to format the dates ...

There are some options in the language files to format dates/time:

File : /language/greek/greek.gemini.php

Code: [Select]
DEFINE('_GEM_DATE_FORMLC', "%A, %d %B %Y"); //Note: Uses PHP's strftime Command Format
DEFINE('_GEM_DATE_FORMLC2', "%A, %d %B %Y %H:%M");

The manual for formating the date/time can be find in here :
http://us2.php.net/strftime
 :)
Title: Re: Display date - time
Post by: armpouniotis on February 19, 2009, 12:50:11
this is exactly what I mean !

thank you very much !

:)
Title: Re: Display date - time
Post by: Farhad Sakhaei on February 19, 2009, 14:18:30
Your welcome  :)