Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Date/Time Display

    Hi! I took the code that displays the time/date in the admin section and added it to my storefront pages, but I want to remove the -0500GMT bit and no amount of playing with the code is doing it for me....I don't know enough about it I guess LOL

    You can see it here:

    http://www.havendesignz.com/store/

    The actual code I inserted is:

    PHP Code:
    <?php echo date("r"time()) . 'GMT'  '&nbsp;'?>
    Can anyone tell me what bit I need to remove to remove the -0500GMT bit?
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Date/Time Display

    The "r" is what's setting the date format. You can change it to something else if you prefer: http://www.php.net/manual/en/function.date.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Date/Time Display

    Thank you!
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

 

 

Similar Threads

  1. Sales or Specials with Time and Date (instead of date only) Expiration
    By townsend2009 in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 29 Jan 2015, 07:56 PM
  2. Subtracting 15 minutes from Time, to display a pickup time
    By FoodDudes in forum General Questions
    Replies: 3
    Last Post: 26 Sep 2012, 02:20 PM
  3. v139h Order date on Invoice is server date/time
    By Kenton in forum Managing Customers and Orders
    Replies: 3
    Last Post: 28 Feb 2012, 06:22 AM
  4. Time and date display
    By cfardon in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 15 Apr 2007, 12:50 AM

Posting Permissions

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