Hey !
I've got an exception when i call my function ...
I'm using the DateTime functions : "DateTime.Now" and "new DateTime(0)"Code:[Oxide] 6:43 PM [Error] Failed to call hook 'cmdVoteTime' on plugin 'VoteKick' (TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.)
Can you please explain me how to set a TimeZone if it's the problem or tell me what the problem is ?
Thanks !
TimeZoneNotFoundException
Discussion in 'Rust Development' started by Onyx, Jul 15, 2015.
-
Wulf Community Admin
It sounds like the system you are on doesn't have a timezone for some reason. I'm not sure you could really set it though. Do you have any issue using it from Lua or another language?
-
Well i tried in python but i can't import the datetime module
Code:ImportError: Import of module datetime not allowed
[DOUBLEPOST=1436987376][/DOUBLEPOST]Is this related to my server host ? Like is this something i should send a ticket for ? -
UP ! I still need help please.
-
Wulf Community Admin
-
The server is hoted by GameServers, i don't know which OS they're using.
-
Did this ever get resolved? I'm having the same issue.
-
Had a workaround for this, one of these should work.
Code:DateTime date2 = DateTime.UtcNow; DateTime date3 = DateTime.Today;
-