Skip to:
Content
Pages
Categories
Search
Top
Bottom

Howto get time in plugin ?


  • anjap
    Member

    @anjap

    I’m trying to make a additional view in the plugin “my-views”, where I show “new post since last logout”. Inorder to do this I have added a new column to the online tabel from plugin “simpel onlinelist” inwhich I put the time when the user logoff.

    I use the time from onlinelist :

    $now = bb_current_time(‘mysql’);

    but it look as if the time is 10 min to late!

    So if I logoff and then logon again I may get some post which are to old.

    In order to compare I made a small test where I made a new post and the logged out. Time on the post say 2008-04-22 11:44:07 and on the logout 2008-04-22 11:34:49.

    Can anyone tell me how the time on the posts are made ?

    or how the bb_current_time() works ?

Viewing 1 replies (of 1 total)

  • _ck_
    Participant

    @_ck_

    If current time is 10 minutes off then the host you are on has it’s system clock set wrong. Contact them to see if that’s correct and if they can sync the host computer’s clock.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.