Closed Proful closed 3 years ago
@proful Can I work on this issue?
@proful Can I work on this issue?
Anyone is free to jump in and tweak stuff. In fact we encourage it😉
You may wanna look in user_timeline.js somewhere inside Twitter folder. The stuff is there.
@PuruVJ Do correct me if I'm wrong. I think this is related to hbs templates under the 'renderer' folder. Let me know
@PuruVJ Do correct me if I'm wrong. I think this is related to hbs templates under the 'renderer' folder.
Let me know
The date generation and manipulation happens in the file I started above. You'll find a statement don't datetime formatting. It needs to be changed to the current date.
in utils/date.js u have to do this --> const formatTimestamp = () => format(new Date(), "MMM d, yyyy");
this will give current date.
It should be set to today's date only when passing user ID.
No changes when reading threads
woops! that i didn't notice let me see
in utils/date.js u have to do this -->
const formatTimestamp = () => format(new Date(), "MMM d, yyyy");
this will give current date.
No no! This is a common util function and should stay so. The change needs to happen in user_timeline.js only. formatTimestamp(new Date().toString()) should do it.
i made changes in useer-timeline-endpoint.js
previous: resp.common.created_at = formatTimestamp(user.created_at);
now: resp.common.created_at = formatTimestamp(new Date());
now its working
in utils/date.js u have to do this -->
const formatTimestamp = () => format(new Date(), "MMM d, yyyy");
this will give current date.No no! This is a common util function and should stay so. The change needs to happen in user_timeline.js only. formatTimestamp(new Date().toString()) should do it.
yes i realised that i was changing the whole global function which would change dates everywhere
@tr0mbl3y Good work! make your PR, we'll review and merge it.
Threadcreated:Mar14,2009 This date should be CLI run date.
node . -u dvassallo -n 10
@Mira-Alf you no need to fix this. Let someone new to the codebase fix this.