Page 1 of 1

[Request]Timestamp converter for siege dates

Posted: Fri Oct 23, 2009 5:35 am
by qbert
Table Castle > SiegeDate you can find a date like this: 1257102600000

I try a lot of TimeStamp converters, but they all give me wrong dates (October 28 2009 16:10 PM (GMT -4) its the rigth date)

So i was wondering if there is a tool who made this because i need sieges every week (custom gracia final server)

Any help would be greatly apreciated... and sorry if im posting in the wrong forum mr moderator :P

Re: [Request]Timestamp converter for siege dates

Posted: Fri Oct 23, 2009 5:40 am
by janiii
you have to chop 3 last places and then convert with a unix time converter. or try to search on forum, there is a nice web tool for calculating the CS time.

Re: [Request]Timestamp converter for siege dates

Posted: Fri Oct 23, 2009 8:00 am
by daedalus
Timestamp need to be divide by 1000 before to convert

Code: Select all

<?php echo date('M d Y h:iA ',$siegeDate/1000); ?>
So for you you need to multiply by 1000 before to update siege date.

Re: [Request]Timestamp converter for siege dates

Posted: Fri Oct 23, 2009 8:16 am
by janiii

Re: [Request]Timestamp converter for siege dates

Posted: Fri Oct 23, 2009 8:19 am
by daedalus
ha yeah haven't read correctly

Thx janiii

Re: [Request]Timestamp converter for siege dates

Posted: Mon Oct 26, 2009 1:12 pm
by labman
Thanks janiii
It's powerful!

Re: [Request]Timestamp converter for siege dates

Posted: Fri May 06, 2011 10:48 pm
by fendor3
that dosen't work for me it keeps show me the same date it was before i made restart and put this code :S