1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Output Raw Unix Timestamp in a Template

Discussion in 'XenForo Questions and Support' started by limboclub, Sep 6, 2013.

  1. limboclub

    limboclub Member

    I need a cachebuster string in a template.

    I am using {xen:date $serverTime, dmyGis} right now, which I saw in another thread.

    But is there a way to just output the raw Unix time stamp?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    {$serverTime}
     
  3. limboclub

    limboclub Member

    Well... that's easy.
     
    Chris D likes this.
  4. Chris D

    Chris D XenForo Developer Staff Member

    :)

    Yep! {xen:date formats a timestamp and you were already using {$serverTime} for that purpose.
     

Share This Page