fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    DateTime

    Questions & Answers
    3
    6
    1659
    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.
    • pffx
      pffx last edited by

      Hi,
      can sb try run this simple project and share result/output?
      I have a problem with correct value for date and time and I need to know if this problem is only on my side.

      https://fxdreema.com/shared/NsOXj34tb

      Thanks a lot

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        yes it is error and must be fixed 🙂

        Between trading and gambling is a very small gap, be careful.

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

          I will fix it

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

            In this case I think MetaQuotes changed something. I use (string) in the front of the datetime variable that comes from Value->Time and in MQL5 only this was enough to convert the datetime into human readable format. But it was different in MQL4, because (string) converted the value into string that is bunch of numbers (the UTC number of the time). So, to fix that I used TimeToString() function and it worked that way. Now it looks that now this function is not necesarry and (string) is enough, just like in MQL5.

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

              Hi,
              thank you. It is working correct now.

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

                Hi,
                can you check "Phone Notification" pls?
                There is the same problem... (01.01.1970).
                Thanks a lot
                0_1505324346966_upload-0437004b-95d2-429e-866a-d190f8732470
                0_1505325224274_upload-b47b1544-4ed1-4e75-a74f-70ab52a91a95
                both of them returns 01.01.1970

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

                Online Users

                R
                F
                S
                D

                15
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors