Macro Variables and different timezones

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
minken
Posts: 1
Joined: Wed Aug 22, 2012 3:00 am

Macro Variables and different timezones

Post by minken »

I have a problem that i can't seem to slove even after looking trough the help sektions. The problem i have is that i have a computer in a different timezone and on that computer i need to check logfiles.The logfiles are produced everyhour in this format. logg-2012-08-21-09.txt Where the first number is the year then month then day and last hour.

So i do a file check test. put in logg-%YYYY%-%MM%-%DD%-%HH%.txt. Now this should work but the problem is that it doesn't why cause the macro variable seems to translate the %HH% to my own timezone and not the local timezone where the computer is at.

I have tested it with putting in the localtime instead of %HH% and then it work. I have also tried to change the regional settings for the folder but that doesn't work either. Also i have tried to make hour like this %HH[-1h]% but that don't work either. So any help to solve this problem would be appreciated.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

HostMonitor doesn't translate date/time macro-variables according to timezone, specified on folder regional settings.
There are special list of variables, affected by regional settings:
http://www.ks-soft.net/hostmon.eng/mfra ... remotesite

Also, you cannot use [-1h] directive. Only [-1d] or [-1m] are supported:
http://www.ks-soft.net/hostmon.eng/mfra ... htm#macros

On the other hand, you may use %NewestFile% macro-variable.
Post Reply