{"id":159016,"date":"2020-09-22T05:37:00","date_gmt":"2020-09-21T21:37:00","guid":{"rendered":"http:\/\/4563.org\/?p=159016"},"modified":"2020-09-22T05:37:00","modified_gmt":"2020-09-21T21:37:00","slug":"github-%e4%b8%8a-commit-%e7%9a%84%e6%97%b6%e9%97%b4%e6%97%b6%e5%8c%ba%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%8c-vuepress-%e5%86%99%e7%9a%84%e6%96%87%e6%a1%a3%e6%8f%90%e4%ba%a4%e5%88%b0-github-%e5%90%8e-last","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=159016","title":{"rendered":"github \u4e0a commit \u7684\u65f6\u95f4\u65f6\u533a\u662f\u4ec0\u4e48\uff0c vuepress \u5199\u7684\u6587\u6863\u63d0\u4ea4\u5230 github \u540e lastUpdated \u9ed8\u8ba4\u65f6\u95f4\u4e0d\u662f UTC+8"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  github \u4e0a commit \u7684\u65f6\u95f4\u65f6\u533a\u662f\u4ec0\u4e48\uff0c vuepress \u5199\u7684\u6587\u6863\u63d0\u4ea4\u5230 github \u540e lastUpdated \u9ed8\u8ba4\u65f6\u95f4\u4e0d\u662f UTC+8               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yueryuer <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u7528 vuepress \u5199\u6587\u6863\uff0c\u63d0\u4ea4\u5230 github\uff0ctravis \u81ea\u52a8\u5316\u90e8\u7f72\uff0c\u67e5\u770b\u6587\u6863\u65f6\u53d1\u73b0 <code>\u4e0a\u6b21\u66f4\u65b0: 9\/21\/2020, 2:38:50 AM<\/code>\u3002 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200923_5f6b7ebd866a7.png\" alt=\"github \u4e0a commit \u7684\u65f6\u95f4\u65f6\u533a\u662f\u4ec0\u4e48\uff0c vuepress \u5199\u7684\u6587\u6863\u63d0\u4ea4\u5230 github \u540e lastUpdated \u9ed8\u8ba4\u65f6\u95f4\u4e0d\u662f UTC+8\" \/> \u6211\u662f 10 \u70b9 38 \u5206 50 \u79d2\u63d0\u4ea4\u7684 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200923_5f6b7ec160f8e.png\" alt=\"github \u4e0a commit \u7684\u65f6\u95f4\u65f6\u533a\u662f\u4ec0\u4e48\uff0c vuepress \u5199\u7684\u6587\u6863\u63d0\u4ea4\u5230 github \u540e lastUpdated \u9ed8\u8ba4\u65f6\u95f4\u4e0d\u662f UTC+8\" \/><\/p>\n<p>\u6309\u7167 vuepress \u5b98\u65b9\u6587\u6863\u7684\u8bf4\u660e<\/p>\n<blockquote>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7 themeConfig.lastUpdated \u9009\u9879\u6765\u83b7\u53d6\u6bcf\u4e2a\u6587\u4ef6\u6700\u540e\u4e00\u6b21 git \u63d0\u4ea4\u7684 UNIX \u65f6\u95f4\u6233(ms)\uff0c\u540c\u65f6\u5b83\u5c06\u4ee5\u5408\u9002\u7684\u65e5\u671f\u683c\u5f0f\u663e\u793a\u5728\u6bcf\u4e00\u9875\u7684\u5e95\u90e8<\/p>\n<\/blockquote><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3415238\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yueryuer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             github \u4e0a\u600e\u4e48\u770b commit \u7684\u5177\u4f53\u65f6\u95f4\uff0c\u53ea\u80fd\u770b\u5230 xx minutes ago                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3415239\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : agagega <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/stackoverflow.com\/questions\/7651644\/git-timezone-and-timestamp-format                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3415240\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yueryuer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @agagega #2 \u547d\u4ee4\u884c\u4e2d\u6211\u5df2\u7ecf\u8f93\u5165\u8fc7 git config &#8211;global log.date local \u4e86\uff0c\u6240\u4ee5\u6211 git log \u51fa\u6765\u7684\u65f6\u95f4\u662f\u50cf\u56fe\u4e2d\u90a3\u6837 Date: Mon Sep 21 10:38:19 2020                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3415241\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xml123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7f51\u9875\u7aef\u7684\u8bdd\u9f20\u6807\u653e\u5728\u65f6\u95f4\u4e0a\u5c31\u80fd\u770b\u89c1\u5177\u4f53\u65f6\u95f4\uff0c\u4ee5\u53ca git \u53ef\u80fd\u9ed8\u8ba4\u4e0d\u8bb0\u5f55\u65f6\u533a\uff0c\u6211\u9047\u5230\u8fc7\u4e0d\u540c\u65f6\u533a\u7684\u4eba\u5408\u4f5c\uff0c\u7ed3\u679c\u540e\u63a8\u7684 commit \u6392\u5728\u4e86\u524d\u9762\uff08\u4ec5\u4e2a\u4eba\u7ecf\u9a8c\uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3415242\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : agagega <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u611f\u89c9\u8fd9\u4e2a\u7f51\u9875\u7528\u7684\u5c31\u662f utc +0\uff0c\u7406\u8bba\u4e0a\u5e94\u8be5\u6839\u636e\u7528\u6237\u65f6\u533a\u52a8\u6001\u663e\u793a\u7684\u3002https:\/\/github.com\/vuejs\/vuepress\/issues\/1854                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3415243\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yueryuer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xml123 #4 \u597d\u7684\uff0c\u591a\u8c22\u5206\u4eab\uff0c\u521a\u521a\u5728 github \u4e0a\u9f20\u6807\u653e\u4e0a\u53bb\u770b\u5230\u4e86\uff0c\u663e\u793a\u662f GMT+8 \u4e0a\u5348 10 \u70b9 38 \u5206                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3415244\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yueryuer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @agagega #5 \u55ef\u55ef\uff0cgithub \u770b\u5230 commit \u7684\u65f6\u95f4\u662f GMT+8 \u4e0a\u5348 10 \u70b9 38 \u5206\uff0c\u73b0\u5728\u6000\u7591\u662f vuepress \u7684 lastUpdated \u7528\u7684 utc+0 \u65f6\u533a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3415245\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SoloCompany <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. git commit object \u662f\u6709\u65f6\u533a\u5c5e\u6027\u7684<br \/>2. git client \u9ed8\u8ba4\u4f7f\u7528\u7684\u662f\u7cfb\u7edf\u65f6\u533a, \u4f46\u4f60\u4e5f\u53ef\u4ee5\u5728 &#8211;date \u91cc\u9762\u6307\u5b9a\u5177\u4f53\u65f6\u533a<br \/>3. git-svn \u5178\u578b\u914d\u7f6e\u4e0b\u5f97\u5230\u7684 commit \u90fd\u62b9\u53bb\u4e86\u65f6\u533a\u4fe1\u606f (\u5927\u6982\u56e0\u4e3a svn \u7684 commit date \u662f\u6ca1\u6709\u65f6\u533a\u4fe1\u606f\u7684, \u53ea\u6709\u4e00\u4e2a timestamp), \u60f3\u4fdd\u7559\u7684\u8bdd\u8bb0\u5f97\u6267\u884c git svn fetch \u7684\u65f6\u5019\u8981\u52a0\u4e0a &#8211;localtime \u53c2\u6570                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>github \u4e0a commit \u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159016"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159016"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159016\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159016"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}