Blog time fixed

This commit is contained in:
dev-chiefworks
2022-02-13 10:16:37 -05:00
parent 4ad7bfce8c
commit 735401c2c4
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -52,6 +52,8 @@ var res = null;
{
blogResult.map(i=>{
var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
var postDt = new Date(i.post_date).toLocaleDateString("en-US", options);
var blgImg = i.meta_value!=null?"https://blog.wrenchboard.com/wp-content/uploads/"+ i.meta_value : blogOne;
return ( <div className="col-lg-4 col-md-6">
<div
@@ -65,7 +67,7 @@ var res = null;
<div className="content">
<div className="blog-meta">
<ul>
<li>{i.post_date}</li>
<li>{postDt}</li>
</ul>
</div>
<h3 className="title">