By default Drupal behaviour, it uses C.E. year but my country (Thailand) uses B.E year (+543). I have added thai.class.inc.php for my country that year will add by 543. That class hasn't finish yet.

When node save at first, it works fine because node author date is empty. Drupal will add automatically but when node is editing, node author date will be C.E. year that make the wrong timestamp.

Ex.
First time: 2011-07-27 11:00:00 +0000
Editing: 2554-07-27 11:00:00 +0000

I think we have to use hook_nodeapi() with operation presave. Anyone has any ideas?

Files: 
CommentFileSizeAuthor
calendar_system_patch_thai.patch1.8 KBrutcreate

Comments

sinasalek’s picture

Issue tags: +6.x-1.6 roadmap

Marked

sinasalek’s picture

Version: 6.x-1.50 » 6.x-1.x-dev

Thanks @rutcreate, i was about to include your patch in the news release but the patch does not contain your thai plugin

sinasalek’s picture

Title: Problem with node save » Thai calendar system plugin

There is another issue address the node save and validation issue #1135072: implementing Date Validation for different calendar systems

sinasalek’s picture

Status: Needs review » Postponed (maintainer needs more info)
sinasalek’s picture

Status: Postponed (maintainer needs more info) » Needs review

We have the patch here #1878628: Calendar system for Thai
change the status to need review

sinasalek’s picture

Status: Needs review » Fixed

Commited to 7-x.1.x and 6.x-1.x

Automatically closed -- issue fixed for 2 weeks with no activity.