Signup Now
Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29
  1. #21
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Stephano View Post
    @Raphael For some reason sstime() is returning the wrong time for me, could you help me?
    https://forums.tibiawindbot.com/show...l=1#post353169

  2. #22
    Free User Stephano's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    433
    Reputation
    43
    Rep Power
    21
    1.png
    Timezone is set to UTC+1. (VPS)

  3. #23
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Stephano View Post
    1.png
    Timezone is set to UTC+1. (VPS)
    Can I assume you posted right after taking the screenshot? Like, very few minutes later?
    Also, are you absolutely sure it's not on UTC+2? Or on a timezone with Daylight Saving Time? Because the data shows the local time (os.date('*t')) as 2h later than UTC time (os.date('!*t')).
    Last edited by Raphael; 04-20-2016 at 07:47 PM.

  4. #24
    Free User Stephano's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    433
    Reputation
    43
    Rep Power
    21
    Quote Originally Posted by Raphael View Post
    Can I assume you posted right after taking the screenshot? Like, very few minutes later?
    Also, are you absolutely sure it's not on UTC+2? Or on a timezone with Daylight Saving Time? Because the data shows the local time (os.date('*t')) as 2h later than UTC time (os.date('!*t')).
    Yes, I posted it just after taking the SS.
    It is on Daylight Saving Time.
    1.png

  5. #25
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    11:33:37 os.date('*t')
    11:33:37 {sec = 37, min = 33, day = 7, isdst = true, wday = 7, yday = 128, year = 2016, month = 5, hour = 11}
    11:33:37 os.date('!*t')
    11:33:37 {sec = 37, min = 33, day = 7, isdst = false, wday = 7, yday = 128, year = 2016, month = 5, hour = 9}
    11:33:37 os.date('!%X')
    11:33:37 09:33:37
    11:33:37 os.date('%X')
    11:33:37 11:33:37
    11:33:37 utcoffset()
    11:33:37 -3600
    11:33:37 cetoffset()
    11:33:37 3600
    11:33:37 utctime()
    11:33:37 34417
    11:33:37 cettime()
    11:33:37 34417
    11:33:37 sstime()
    11:33:37 1583



    12:00:22 os.date('*t')
    12:00:22 {sec = 22, min = 0, day = 7, isdst = true, wday = 7, yday = 128, year = 2016, month = 5, hour = 12}
    12:00:22 os.date('!*t')
    12:00:22 {sec = 22, min = 0, day = 7, isdst = false, wday = 7, yday = 128, year = 2016, month = 5, hour = 10}
    12:00:22 os.date('!%X')
    12:00:22 10:00:22
    12:00:22 os.date('%X')
    12:00:22 12:00:22
    12:00:22 utcoffset()
    12:00:22 -3600
    12:00:22 cetoffset()
    12:00:22 3600
    12:00:22 utctime()
    12:00:22 36022
    12:00:22 cettime()
    12:00:22 36022
    12:00:22 sstime()
    12:00:22 86378


    UTC +1
    Last edited by Imba; 05-07-2016 at 10:02 AM.

  6. #26
    Free User Stephano's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    433
    Reputation
    43
    Rep Power
    21
    I had to change my sstime function to make it work:
    function sstime()
    return (36000 - cettime() - 7200) % 86400
    end

  7. #27
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    I'm sorry guys, I haven't had the time to check this out. I'll try and get this done tomorrow or the day after that.

  8. #28
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28

  9. #29
    Moderator Josh's Avatar
    Join Date
    Dec 2013
    Posts
    1,394
    Reputation
    183
    Rep Power
    24
    fixed sstime() once again.
    Last edited by Josh; 06-01-2016 at 10:24 AM. Reason: Upload images to imgur.com

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •