Re: [PHP] GMT

2005-01-04 Thread Richard Lynch
Bruno B B Magalhães wrote: > Hi you all, > > How do you work with GMT time-zones? I mean, I´ve developed a support > system, with projects, bugs, tasks, etc... but as I user date()ç,I is 6 > hours late from my client´s time-zone... > > And I would like to make it a little more dynamic than just put

Re: [PHP] GMT

2005-01-04 Thread Bruno B B Magalhães
i Travis and Tobias, I've modified a simple function, and incorporated it to my framework's datetime.class.php witch handles all date and time conversion... Here it is: = var $server_timezone_offset = -5; var $default_timezone

Re: [PHP] GMT

2005-01-04 Thread Travis Conway
Here has always been a problem I run into with GMT translation. You have to make sure that the system you are working with is set to the correct time zone so that any application trying to automatically figure out the time have the starting point. This is easy enough in Windows, but can mean

Re: [PHP] GMT

2004-01-11 Thread Sascha Kaufmann
Hello, you can use gmdate() http://ch2.php.net/gmdate regards Sascha Hassan Shaikh wrote: Hi, My hosting provider is located somewhere in Houston, TX (EV1). I am using PHP and MySQL and need to store all dates/time in GMT (considering DST also). Appreciate any help! Once the date/time is in G

RE: [PHP] GMT strtotime() problem today!!

2003-04-01 Thread Ford, Mike [LSS]
> -Original Message- > From: Stuart Cochrane [mailto:[EMAIL PROTECTED] > Sent: 31 March 2003 15:45 > > I have a script that runs on over 250 Servers, all are running NT4. > here is the script: > > [php] > function last_sunday() { > return gmdate("Y-m-d", strtotime("Last Sunday")); >

Re: [PHP] GMT Time

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 01:23 PM, Richard Fox wrote: > I want to compare a timestamp(14) field in a MySQL table with the > current > time. Currently I use the following pseudo-sql: > > select field from table where table.time < date("YmdHis", time()) > > only, the table timestamp is GMT

Re: [PHP] GMT Time

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 01:23 PM, Richard Fox wrote: > I want to compare a timestamp(14) field in a MySQL table with the > current > time. Currently I use the following pseudo-sql: > > select field from table where table.time < date("YmdHis", time()) > > only, the table timestamp is GMT

Re: [PHP] GMT / TimeZone modifications

2002-04-11 Thread Peter H. Lemieux
- From: "Richard KS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 11:14 PM Subject: Re: [PHP] GMT / TimeZone modifications > Thanks for the quick answer! > Perhaps you have a smaller code snippet for this? > > NOTE It wouldn

Re: [PHP] GMT / TimeZone modifications

2002-04-10 Thread Richard KS
Thanks for the quick answer! Perhaps you have a smaller code snippet for this? NOTE It wouldn't mind if the entire website would go after one timezone, in this case from GMT+8 to GMT+1. -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +46 (0) 736 849 531 f

Re: [PHP] GMT / TimeZone modifications

2002-04-10 Thread Rasmus Lerdorf
setenv() the appropriate timezone, then use strtotime() or mktime() to create a timestamp. Then setenv() to the other timezone and use date() or strftime() to convert back into a legible format. -Rasmus On Thu, 11 Apr 2002, Richard KS wrote: > Greetings. > > I was wondering if there are any go