Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    Msql Time different with local Time

    Back-End Development
    php mysql database
    4
    8
    656
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nisitha last edited by

      Mysql වල CURTIME(), CURDATE() වලින් db එකට push කරාම. Godaddy server එකේ time එකයි date එකයි තමයි database එකට යන්නේ.
      ඒක හදාගන්නේ කොහොමද ?
      Php walin get time zone එක set කරාට වැඩක් උනේ නෑ !!

      root 1 Reply Last reply Reply Quote 1
      • root
        root Linux Help @nisitha last edited by

        @nisitha said in Msql Time different with local Time:

        set කරාට වැඩක් උනේ නෑ !!

        server time zone eka maru karanna,

        https://hostpapasupport.com/set-timezone-php-php-ini/

        N 1 Reply Last reply Reply Quote 1
        • N
          nisitha @root last edited by

          @root machan oya option eka nane date.timezone

          1 Reply Last reply Reply Quote 0
          • dev_lak
            dev_lak last edited by

            mysql wala CURTIME(), CURDATE() mewagen date time ganne php timezone eken nemei, mysql server eke timezone eken, mysql server eke timezone eka change krnna

            N 1 Reply Last reply Reply Quote 1
            • N
              nisitha @dev_lak last edited by

              @dev_lak kohomada machan change karanne ?

              1 Reply Last reply Reply Quote 0
              • dev_lak
                dev_lak last edited by

                danata tyena timezone eka balanna

                SELECT @@global.time_zone;
                

                aluth time zone ekak set krnna (ekak query ekak use karanna)

                SET GLOBAL time_zone = '+8:00';
                SET GLOBAL time_zone = 'Europe/Helsinki';
                SET @@global.time_zone = '+00:00';
                
                root 1 Reply Last reply Reply Quote 2
                • root
                  root Linux Help @dev_lak last edited by

                  @dev_lak cpanel eken server time eka maru karama ekath maru wenawa.

                  1 Reply Last reply Reply Quote 0
                  • Nisal Vimukthi
                    Nisal Vimukthi last edited by

                    Windows license key ekak use krala active krada ? ehema nam e license key eka aithi rate timezone wetenne

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post

                    1
                    Online

                    3.7k
                    Users

                    1.3k
                    Topics

                    5.3k
                    Posts

                    • Privacy
                    • Terms & Conditions
                    • Donate

                    © Copyrights and All right reserved Lanka Developers Community

                    Powered by Axis Technologies (PVT) Ltd

                    Made with in Sri Lanka

                    | |