• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Change current time

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Main page of the forum:

jforum/forums/list.page contains current time:
The time now is: 29/08/2006 03:51:10

This is I believe server time. How can I change it to German or Italian or any other time local to the user who is using the forum?

Thank you.
[originally posted on jforum.net by AnotherGuest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

AnotherGuest wrote:Main page of the forum:

jforum/forums/list.page contains current time:
The time now is: 29/08/2006 03:51:10

This is I believe server time. How can I change it to German or Italian or any other time local to the user who is using the forum?

Thank you.


You can't configure the shown time to reflect each forum user's time zone without making coding modifications.

I suppose this could be implemented via a new setting in the user profile, but would cause confusion with time stamping posts in the forum unless the server time was used for every post. But if you do that, what is really the point of displaying a different time zone? If you need to see what time it is, you can look on your computer (or at a clock).

[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess I was not clear enough. Let's say my server is in Africa that hosts jforum. Jforum is configured for people in Mexico city. I want to have time that is Mexical local time but not African.

Thanks.
[originally posted on jforum.net by AnotherGuest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

AnotherGuest wrote:I guess I was not clear enough. Let's say my server is in Africa that hosts jforum. Jforum is configured for people in Mexico city. I want to have time that is Mexical local time but not African.

Thanks.


In that case, it would depend upon the host managing the server as to what time would be used. If it's "your" server, you can set it to whatever time zone you want.

If you are not the only customer hosting on the server, it would depend upon the policies of the host company providing the server.
[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cool,

Any idea how to set it on Fedora Core 5?
[originally posted on jforum.net by AnotherGuest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

AnotherGuest wrote:Cool,

Any idea how to set it on Fedora Core 5?


Not sure on Fedora .. but check in /etc. There should be a symbollic link /etc/localtime that points to /usr/share/zoneinfo/YOUR_TIME_ZONE_HERE. (I use Gentoo Linux)
[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in my case /etc/localtime is not a link but a regular file.
Do you think it needs to be a link?
[originally posted on jforum.net by AnotherGuest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

AnotherGuest wrote:in my case /etc/localtime is not a link but a regular file.
Do you think it needs to be a link?


I also have an /etc/conf.d/clock file which is set to "local" - which would be my computer's system time. You might need to do a search on the Fedora forum to see how to set your timezone.
[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK,

Thanks.
[originally posted on jforum.net by AnotherGuest]
 
Your mother was a hamster and your father was a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic