Index: backend/ai/processRequestAi.js
===================================================================
--- backend/ai/processRequestAi.js	(revision 984aa7427b9f59f0518031a5deed2ac57fc97ea3)
+++ backend/ai/processRequestAi.js	(revision 1822db35ffa4cf176a7996befa4adf3fc3eef75f)
@@ -30,5 +30,5 @@
       model: 'gpt-3.5-turbo',
       messages: [{ role: 'user', content: prompt }],
-      temperature: 0.5, // Even lower temperature for more consistent responses
+      temperature: 0.2, // Even lower temperature for more consistent responses
     });
 
Index: backend/controllers/forumController.js
===================================================================
--- backend/controllers/forumController.js	(revision 984aa7427b9f59f0518031a5deed2ac57fc97ea3)
+++ backend/controllers/forumController.js	(revision 1822db35ffa4cf176a7996befa4adf3fc3eef75f)
@@ -10,5 +10,4 @@
 
 const createForumPost = async (req, res) => {
-  console.log('Creating forum post', req.body, res.body);
   const { title, content, authorId, authorName } = req.body;
 
@@ -19,5 +18,5 @@
     const postCounter = user.postCounter;
 
-    if (postCounter > 0) {
+    if (true) {
       const post = new ForumPost({
         title,
@@ -44,4 +43,8 @@
         });
       } else if (
+        !(
+          safeWords.includes(post.content.toLowerCase()) ||
+          safeWords.includes(post.title.toLowerCase())
+        ) &&
         !(safeWords.includes(post.content) || safeWords.includes(post.title))
       ) {
@@ -53,5 +56,5 @@
               error: 'Content is not appropriate for the forum',
             });
-          } 
+          }
         } catch (error) {
           console.error('AI analysis error:', error);
Index: backend/controllers/taskController.js
===================================================================
--- backend/controllers/taskController.js	(revision 984aa7427b9f59f0518031a5deed2ac57fc97ea3)
+++ backend/controllers/taskController.js	(revision 1822db35ffa4cf176a7996befa4adf3fc3eef75f)
@@ -3,12 +3,39 @@
 const getTaskByDate = async (req, res) => {
   const { date } = req.params;
-
-  try {
+  console.log(date);
+
+  try {
+    const now = new Date();
+
+    let effectiveDate;
+
+    if (date === now.toISOString().split('T')[0]) {
+      if (now.getHours() < 7) {
+        effectiveDate = new Date(now);
+        effectiveDate.setDate(now.getDate() - 1);
+      } else {
+        effectiveDate = now;
+      }
+    } else {
+      effectiveDate = new Date(date);
+    }
+
+    const taskDate = new Date(
+      Date.UTC(
+        effectiveDate.getUTCFullYear(),
+        effectiveDate.getUTCMonth(),
+        effectiveDate.getUTCDate()
+      )
+    );
+
+    console.log(
+      'Effective Date for Task (UTC midnight):',
+      taskDate.toISOString()
+    );
+
     let tasks = await prisma.challenges.findMany({
       where: {
-        solving_date: {
-          gte: new Date(new Date(date).setHours(0, 0, 0, 0)),
-          lt: new Date(new Date(date).setHours(23, 59, 59, 999)),
-        },
+        solving_date: taskDate,
+        expired: false,
       },
       include: {
@@ -17,18 +44,5 @@
     });
 
-    if (tasks.length === 0) {
-      tasks = await prisma.challenges.findMany({
-        where: {
-          expired: false,
-        },
-        orderBy: {
-          solving_date: 'desc',
-        },
-        take: 1,
-        include: {
-          test_cases: true, // Include test cases data
-        },
-      });
-    }
+    console.log('Tasks found:', tasks);
 
     if (tasks.length === 0) {
@@ -214,4 +228,5 @@
 function getTimeBonus() {
   const minutes = getMinutesSinceSevenAM();
+  console.log('Minutes since 7 AM:', minutes);
   return Math.max(0, 60 - Math.floor(minutes * 0.0833));
 }
@@ -219,5 +234,5 @@
 function getAttemptScore(attempts) {
   switch (attempts) {
-    case 1: // First actual attempt being evaluated
+    case 1:
       return 40;
     case 2:
@@ -277,5 +292,5 @@
         data: {
           points: { increment: totalScore },
-          attempts: 0,
+          attempts: { increment: 1 },
           solvedDailyChallenge: true,
         },
Index: client/src/Dashboard/components/Task.jsx
===================================================================
--- client/src/Dashboard/components/Task.jsx	(revision 984aa7427b9f59f0518031a5deed2ac57fc97ea3)
+++ client/src/Dashboard/components/Task.jsx	(revision 1822db35ffa4cf176a7996befa4adf3fc3eef75f)
@@ -130,5 +130,6 @@
 
   const handleStart = () => {
-    fetchTaskForToday(Date.now());
+    const today = new Date();
+    fetchTaskForToday(today);
 
     // toggleSolvedDailyChallenge(user);
@@ -249,5 +250,5 @@
                   </div>
                 </div>
-                {!user.solvedDailyChallenge && (
+                {user.solvedDailyChallenge && (
                   <div className="card-actions justify-center mt-8">
                     <button
@@ -303,7 +304,7 @@
                 {task ? (
                   <>
-                    <div className="card bg-base-300 mb-8">
+                    <div className="card bg-base-300 mb-2">
                       <div className="card-body">
-                        <h2 className="card-title mb-4">
+                        <h2 className="card-title mb-1">
                           Problem: {task.title || 'Daily Challenge'}
                         </h2>
@@ -317,9 +318,9 @@
                       <div className="card bg-primary/5">
                         <div className="card-body">
-                          <h3 className="card-title text-primary">
-                            Your Input
+                          <h3 className="card-title text-seondary underline">
+                            Your Input:
                           </h3>
                           <div
-                            className={`text-xl font-mono mt-2 break-all font-bold ${
+                            className={`text-xl font-mono mt-3 break-all font-bold ${
                               testCase &&
                               testCase.input &&
@@ -331,7 +332,4 @@
                             {testCase && testCase.input}
                           </div>
-                          <p className="text-sm mt-2 text-base-content/70">
-                            Use this input in your local editor
-                          </p>
                         </div>
                       </div>
