Patch #1550744 (Python scripts should not hardcode timezones) courtesy Mark Kidder
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@4861 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
4dca628f71
commit
488f56d370
|
@ -38,7 +38,7 @@ class CFLog:
|
|||
self.log = CFData('Player_log', logheader)
|
||||
|
||||
def create(self, name):
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S CEST", localtime(time()))
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S %Z", localtime(time()))
|
||||
record={'#': name
|
||||
,'Born':date
|
||||
,'IP':'unknown'
|
||||
|
@ -54,7 +54,7 @@ class CFLog:
|
|||
self.log.remove_record(name)
|
||||
|
||||
def login_update(self, name, ip):
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S CEST", localtime(time()))
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S %Z", localtime(time()))
|
||||
record = self.log.get_record(name)
|
||||
record['IP']=ip
|
||||
record['Last_Login_Date']=date
|
||||
|
@ -62,14 +62,14 @@ class CFLog:
|
|||
self.log.put_record(record)
|
||||
|
||||
def kick_update(self, name):
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S CEST", localtime(time()))
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S %Z", localtime(time()))
|
||||
record = self.log.get_record(name)
|
||||
record['Kick_Count']=int(record['Kick_Count'])+1
|
||||
record['Last_Kick_Date']=date
|
||||
self.log.put_record(record)
|
||||
|
||||
def muzzle_update(self, name):
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S CEST", localtime(time()))
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S %Z", localtime(time()))
|
||||
record = self.log.get_record(name)
|
||||
record['Muzzle_Count']=int(record['Muzzle_Count'])+1
|
||||
record['Last_Muzzle_Date']=date
|
||||
|
|
|
@ -26,7 +26,7 @@ import string
|
|||
from time import localtime, strftime, time
|
||||
|
||||
mail = CFMail.CFMail()
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S CEST", localtime(time()))
|
||||
date = strftime("%a, %d %b %Y %H:%M:%S %Z", localtime(time()))
|
||||
activator = Crossfire.WhoIsActivator()
|
||||
activatorname = activator.Name
|
||||
whoami = Crossfire.WhoAmI()
|
||||
|
|
Loading…
Reference in New Issue