Skip to content

Commit

Permalink
Modified '6 characters' to solve a bug due to the new year that preve…
Browse files Browse the repository at this point in the history
…nted creating posts.
  • Loading branch information
EssamWisam committed Jan 1, 2022
1 parent 20d831e commit c21b530
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const CreatePost = createAsyncThunk(
'DashPosts/CreatePost',
async ({ postBody, User, postType }) => {
const d = new Date();
const time = `${d.getFullYear()}-${d.getMonth()}-${d.getDay()}`;
const time = `${d.getFullYear()}-0${d.getMonth() + 1}-0${d.getDate()}`;
const USER_TOKEN = User.accessToken;
const AuthStr = `Bearer ${USER_TOKEN}`;
if (SERVICETYPE === 0) {
Expand Down

0 comments on commit c21b530

Please sign in to comment.