Consulting

Results 1 to 11 of 11

Thread: test

  1. #1

  2. #2
    VBAX Tutor cmpgeek's Avatar
    Joined
    Jun 2004
    Location
    Athens, Ga USA
    Posts
    204
    Location
    did you pass? lol



    Life is like a jar of jalepenos... What you do with it today might burn your butt tomorrow....

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Master
    Joined
    Jan 2005
    Location
    Porto Alegre - RS - Brasil
    Posts
    1,219
    Location
    Testing PHP Tags:
    PHP Code:
    echo date("H")+substr($gmt,3,strlen($gmt)-3) . ":" date("i"
    If we could parse PHP in the forum template, this would show the current time for each user instead of his/her GMT, assuming that his/her GMT (eg GMT-3) is in variable $gmt.
    Best Regards,

    Carlos Paleo.

    To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.

    If Debugging is harder than writing a program and your code is as good as you can possibly make
    it, then by definition you're not smart enough to debug it.




    http://www.mugrs.org

  4. #4
    Administrator
    Chat VP VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    Quote Originally Posted by Paleo
    Testing PHP Tags:
    PHP Code:
    echo date("H")+substr($gmt,3,strlen($gmt)-3) . ":" date("i"
    If we could parse PHP in the forum template, this would show the current time for each user instead of his/her GMT, assuming that his/her GMT (eg GMT-3) is in variable $gmt.
    Hi Pal,

    Check in your User CP/Edit Options/Time Zone (took me a while before I realized this was there). I think that's what you want...

    Regards,
    John
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  5. #5
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    John

    If you hover your mouse over the country flags it will show the time (GMT -8) for example.

  6. #6
    Administrator
    Chat VP VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    Wow! Dint know that...Often wondered how I could easily equate (say) "your" time with "my" time. So (if I did this right) it should be close to 10:45 (PM) for you right now? (4:45PM here)...
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  7. #7
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    yup 10:45 PM on Friday 1/28/05.

  8. #8
    Administrator
    Chat VP VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    OK, now a tricky one...

    Is there a simple way (apart from me doing the mental calculations) to show that instead of just the GMT differences?

    E.G. I click onto your flag and it shows me (say) "10:45PM Friday"

    That way, then I know that if I'm (or anyone else is) asking you (or anyone else) to respond to something, and your time shows (say) 3:30AM, I can then think "this is a bit unreasonable, it can wait till a better time"... OR, if there's no response, the one on the other end won't think they're just being ignored...
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  9. #9
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    That's what Paleo was suggesting, but I can't use php in the templates. Maybe we can modify the php files later on.

  10. #10
    Administrator
    Chat VP VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    OK, wasn't sure, but after I posted, I then thought that mighta been what he was getting at...
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  11. #11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •