Overview
If you move a vault to a server, which is in different timezone, local times in the vault database are not updated automatically.
Symptoms
Workflow automatic transitions and some other vault operations based on time and date can use this local timezone value, rather than the server or client machine time settings. This can lead to some automatic functions or comparisons behaving unexpectedly if the vault's local timezone is incorrect. First verify that the M-Files server timezone and locale is correct, then try the solution below to make sure the vault's local timezone is updated.
Solution
To update the local timezone, you need to define the following registry setting:
[HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Server\MFServer\Vaults\<vault guid>\ThoroughOptimization\IncludedOnlyTasks]
"ChangeVaultLocalTimeZone"=dword:00000001
and run manually 'Optimize Database (Thorough)' in M-Files Admin tool.
If you have enabled optimization logs, there are following lines seen in the logs, when the timezone is updated:
<ThoroughOptimization> <Vault-GUID: {523E76EA-67BB-462E-87FD-2E8B315AEB0F}> Changing vault local time zone - starting.
<ThoroughOptimization> <Vault-GUID: {523E76EA-67BB-462E-87FD-2E8B315AEB0F}> Changing vault local time zone - finished.
