File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,21 @@ export async function updateWorkflowNumber() {
3939 const workflowDetails = await getLatestWorkflow ( ) ;
4040 const count = workflowDetails . count ;
4141 const timeStamp = new Date ( workflowDetails . timeStamp ) ;
42+ const time = new Date (
43+ timeStamp . getTime ( ) + 5.5 * 60 * 60 * 1000
44+ ) . toLocaleString ( "en-US" , {
45+ timeZone : "Asia/Kolkata" ,
46+ dateStyle : "medium" ,
47+ timeStyle : "short" ,
48+ } ) + " IST" ;
4249
4350 const readmeContent = readFileSync ( READMEFILE_PATH , "utf-8" ) ;
4451
4552 const updatedContent = readmeContent . replace (
4653 / (?< = < ! - - S T A R T _ S E C T I O N : w o r k f l o w s - u p d a t e - - > \n ) [ \s \S ] * (? = \n < ! - - E N D _ S E C T I O N : w o r k f l o w s - u p d a t e - - > ) / ,
4754 `\n<p align="center">
4855 This <i>README</i> file is refreshed <b>every 24 hours</b>!<br/>
49- Last refresh: <b>${ timeStamp . toUTCString ( ) . split ( "," ) [ 1 ] } </b><br/>
56+ Last refresh: <b>${ time } </b><br/>
5057 Number of workflows: <b>${ count } </b><br/><br/>
5158 Made with ❤️ by Pulkit
5259 </p>\n`
You can’t perform that action at this time.
0 commit comments