Announcement

Collapse
No announcement yet.

$gdate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • $gdate

    $gdate = date("F.d.Y G:i A"); this works but when the time is posted it shows say like 7 am when it should show 10 am how do I add 3 hours to it?
    Last edited by express; Sun 11 Aug '02, 7:09am.
    Real Web Host

  • #2
    PHP Code:
    $gdate date("F.d.Y G:i A"time() + (60 60 3) ); 

    Comment


    • #3
      Thank you works great!

      Joey
      Real Web Host

      Comment


      • #4
        megahard,
        It works but since we made change now it operates on a 24 hour clock versus a 12 hour clock need 12 hour clock back.
        Real Web Host

        Comment


        • #5
          PHP Code:
          $gdate date("F.d.Y g:i A"time() + (60 60 3) ); 
          The lower case g makes it 12 hour time

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X