From 4f3d0a6b77e487ef7d945f73f3450b86fbd3e161 Mon Sep 17 00:00:00 2001
From: Woraprat <73052317+aeworaprat@users.noreply.github.com>
Date: Wed, 15 Mar 2023 22:33:33 +0700
Subject: [PATCH] update project year

---
 html/exhi/application/views/project/v_project_manage.php      | 4 ++--
 html/exhi/application/views/project/v_project_manage_user.php | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/html/exhi/application/views/project/v_project_manage.php b/html/exhi/application/views/project/v_project_manage.php
index 9d02aa2..8b1de2d 100644
--- a/html/exhi/application/views/project/v_project_manage.php
+++ b/html/exhi/application/views/project/v_project_manage.php
@@ -150,7 +150,7 @@ function create_table(data) {
 		const template_clone = template.content.cloneNode(true);
 		template_clone.querySelector('.index').innerText = index+1
 		template_clone.querySelector('.name').innerText = row.name_th;
-		template_clone.querySelector('.year').innerText = row.date;
+		template_clone.querySelector('.year').innerText = (+row.date+543);
 		let graduation 
 		if(row.cluster_id != 0){
 			graduation = 2
@@ -188,7 +188,7 @@ function create_option_year(data){
 	data.forEach((row, index) => {
 		option = document.createElement("option")
 		option.setAttribute("value", row.date)
-		option.text = row.date
+		option.text = (+row.date+543)
 		selectList.appendChild(option)
 	})
 }
diff --git a/html/exhi/application/views/project/v_project_manage_user.php b/html/exhi/application/views/project/v_project_manage_user.php
index 44e9fa8..d5a3de7 100644
--- a/html/exhi/application/views/project/v_project_manage_user.php
+++ b/html/exhi/application/views/project/v_project_manage_user.php
@@ -150,7 +150,7 @@ function create_table(data) {
 		const template_clone = template.content.cloneNode(true);
 		template_clone.querySelector('.index').innerText = index+1
 		template_clone.querySelector('.name').innerText = row.name_th;
-		template_clone.querySelector('.year').innerText = row.date;
+		template_clone.querySelector('.year').innerText = (+row.date+543);
 		let graduation 
 		if(row.cluster_id != 0){
 			graduation = 2
@@ -187,7 +187,7 @@ function create_option_year(data){
 	data.forEach((row, index) => {
 		option = document.createElement("option")
 		option.setAttribute("value", row.date)
-		option.text = row.date
+		option.text = (+row.date+543)
 		selectList.appendChild(option)
 	})
 }
-- 
GitLab