Welcome Visitor, Please Login or Register Now Monday, April 29, 2024 02:20 AM 
Forums Index > Mewsoft Products > Auctionawy > Clock Time
New Topic   New Reply
Search for:
Author Message
Focusman01 Focusman01's personal page
Registered Member
Posts: 118 Display member's posts
Joined: 04-29-24 02:20 AM
Member Offline
View Member's Profile Send private message
 
Back to top
Clock Time Edit Delete Reply with quote Quote
First Post Posted on: 04-25-08 11:38 AM next post first post
Hello,

:?: In regard to the clock on web pages and individual Auctions. Is there some kind of way to set the time for a specific region? Example: EST, PST, CST so there is no confusion with the end user?

Auction ends October 18, 2004 05:09 PM EST

Example: Monday, October 18, 2004 05:09 PM EST
http://www.mewsoft.com/cgi-bin/na/auction.cgi

Thanks.
urban_fusion urban_fusion's personal page
Registered Member
Posts: 4 Display member's posts
Joined: 04-29-24 02:20 AM
Location: Ottawa, Canada
Member Offline
View Member's Profile Send private message
 
Back to top
Setting Time In PHP Edit Delete Reply with quote Quote
Reply #: 1 Posted on: 04-25-08 09:36 PM next post previous post
Hey, I was researching some hosting options the other day... the host was at least 2 timezones off from where I am... and I wanted to display my time as well... here's what I found on the subject:

How do I change timezone for PHP?

There are at least 2 ways to cause PHP to behave as if it was in the timezone of your choice.

1. Follow this other FAQ to change timezone for your entire account.

2. If you only want particular PHP scripts (and not shell or other cgi scripts) to use a specific timezone, set the timezone environmental variable in your PHP code like so:

<?
echo "Original Time: ". date("hironys")." ";
putenv("TZ=US/Eastern");
echo "New Time: ". date("hironys")." ";
?>
If you put the line putenv("TZ=US/Eastern"); in a file that is
include()'ed by all your other PHP scripts, then all your PHP scripts will use that timezone.


I don't have my mewsoft software yet so Im not sure exactly where this script would be placed within their system... hope it helps anyways.

Cheers!
urban_fusion urban_fusion's personal page
Registered Member
Posts: 4 Display member's posts
Joined: 04-29-24 02:20 AM
Location: Ottawa, Canada
Member Offline
View Member's Profile Send private message
 
Back to top
Re: Clock Time Edit Delete Reply with quote Quote
Reply #: 2 Posted on: 04-25-08 09:39 PM next post previous post
In regards to changing the time for the entire account...


How do I change the timezone for my account?

Following this FAQ will change the timezone for your entire account, affecting your shell environment and all your scripts written in any language.

To do this, replace your /etc/localtime file with the appropriate timezone data file from /usr/share/zoneinfo. For example,
to set everything to Eastern Standard Time, get a shell prompt and replace your /etc/localtime with
/usr/share/zoneinfo/EST by typing the following 4 shell commands:


date
cd /etc
cp -f /usr/share/zoneinfo/EST localtime
date
The first 'date' command will show you the current date/time before you change the timezone. The final 'date' command shows you current date/time in the timezone that you chose, which in this example is EST.

There are many timezone data files in the zoneinfo directory and you can use any of them that you wish. To see them all, do:


ls /usr/share/zoneinfo



Just sharing it as I've recieved it. Right or wrong Im not sure... just trying to do my part to help out!
Anonymous Anonymous's personal page
Registered Member
Posts: Display member's posts
Joined: 04-29-24 02:20 AM
Member Offline
View Member's Profile PM
 
Back to top
Re: Clock Time Edit Delete Reply with quote Quote
Reply #: 3 Posted on: 04-25-08 09:59 PM last post previous post
edited
Page 1 of 1
Go to page:

New Topic   New Reply Mark Unread
Jump to:  
Delete   Move     Lock   +Favorits   +Notify   Print