We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    Is there a way to add last modified time/date with a snippet or something?

    <meta http-equiv="last-modified" content="YYYY-MM-DD@hh:mm:ss TMZ" />

    This question has been answered by fourroses666. See the first response.

    [ed. note: fourroses666 last edited this post 11 years, 7 months ago.]
      Evolution user, I like the back-end speed and simplicity smiley
      • 9995
      • 1,613 Posts
      I found this which works: [*editedon:date=`%d/%m/%Y`*]

      and a snippet:
      <?php
      // Output formatted page edited date.
      echo strftime("%A %d %B, %Y", $modx->documentObject['editedon']);
      ?>


      how can I output: YYYY-MM-DD@hh:mm:ss



      [ed. note: fourroses666 last edited this post 11 years, 7 months ago.]
        Evolution user, I like the back-end speed and simplicity smiley
      • discuss.answer
        • 9995
        • 1,613 Posts
        Found it:

        <?php
        // Output formatted page edited date.
        	echo strftime("%Y-%m-%d@%H:%M:%S TZM", $modx->documentObject['editedon']);
        ?>


        The only question left is what means the TZM?
        This is I think timezone. What do I need to use for the Netherlands / Amsterdam?

        Is that CET (central europe timezone) ? [ed. note: fourroses666 last edited this post 11 years, 7 months ago.]
          Evolution user, I like the back-end speed and simplicity smiley
          • 2762
          • 1,198 Posts
          Quote from: fourroses666 at Feb 04, 2015, 05:24 AM

          The only question left is what means the TZM?
          Time Zone Minute??
            Free MODx Graphic resources and Templates www.tattoocms.it
            -----------------------------------------------------

            MODx IT  www.modx.it
            -----------------------------------------------------

            bubuna.com - Web & Multimedia Design
            • 9995
            • 1,613 Posts
            Hehe, you think?

            Found it here.
            http://webdesign.about.com/od/metataglibraries/a/use_meta_tags.htm

            When searching google I see allot GTM and UTC.
              Evolution user, I like the back-end speed and simplicity smiley
              • 2762
              • 1,198 Posts
              I've searched for TZM not TMZ laugh
                Free MODx Graphic resources and Templates www.tattoocms.it
                -----------------------------------------------------

                MODx IT  www.modx.it
                -----------------------------------------------------

                bubuna.com - Web & Multimedia Design
                • 9995
                • 1,613 Posts
                ah indeed, I think you have to add your own (Europe) time zone region there.

                I think TZM is somewhere in the states:

                 10  v_tz1 := to_timestamp_tz(to_char(sysdate,v_x)||' US/Central',v_x||' TZR');
                 11  v_tz2 := to_timestamp_tz(to_char(sysdate,v_x)||' CDT',v_x||' TZD');
                 12  v_tz3 := to_timestamp_tz(to_char(sysdate,v_x)||' -05:00',v_x||' TZH:TZM')
                  Evolution user, I like the back-end speed and simplicity smiley