Results 1 to 10 of 19

Thread: date and time script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Make sure you self endon("disconnect") or there will be a lot of threads running after a client disconnects.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following 3 Users Say Thank You to IzNoGoD For This Useful Post:

    caldas (16th June 2018),kung foo man (16th June 2018),maxdamage99 (20th June 2018)

  3. #2
    Private
    Join Date
    Dec 2016
    Posts
    30
    Thanks
    5
    Thanked 5 Times in 5 Posts
    do you think this can affect server performance?


    --

    i made a small change and recompile voron00 libcod

    PHP Code:
    void gsc_utils_getlocaltime()
    {
            
    time_t timer;
            
    struct tm *timeinfo;

            
    time(&timer);
            
    timeinfo localtime(&timer);

            
    char timestring[256];
            
    strftime(timestringsizeof(timestring), "%d/%m/%Y %H:%M"timeinfo);
            
    char stripped_time[128];

            
    strncpy(stripped_timetimestringsizeof(stripped_time));
            
    stripped_time[strlen(timestring) - 1] = '\0';

            
    stackPushStringstripped_time );

    Last edited by caldas; 16th June 2018 at 12:58.

Posting Permissions

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