Thanks for your reply.
in net/jforum/view/forum/PostAction.java, method insertSave(),
inside if (newTopic) { ///code
I replaced
t.setTime(new Date()) with
TimeZone timeZone = TimeZone.getTimeZone("Asia/Calcutta");
Date date = Calendar.getInstance(timeZone, Locale.US).getTime();
t.setTime(date);
and also in /jforum/view/forum/PostCommon.java in method Post fillPostFromRequest()
I replaced
p.setTime(new Date()); with
TimeZone timeZone = TimeZone.getTimeZone("Asia/Calcutta");
Date date = Calendar.getInstance(timeZone, Locale.US).getTime();
p.setTime(date);
.....
But it didn't work.
When I wrote the code as standalone
java application i got my system time.
..........
in generic_queries.sql
It is given
PostModel.addNewPost = INSERT INTO jforum_posts (topic_id, forum_id, user_id, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_edit_time, need_moderate) \
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, NOW(), ?)
So, Does this mean post time is fetched in the query level by using now() function?
In that case how to manipulate this?
Thanks
Razia
[originally posted on jforum.net by razia]