You must Sign In to post a response.
  • Category: WCF

    WCF Service not working Properly

    My WCF service is show correct time in local host but when i am hosting service to NTP server it show wrong time getting utc server time.
  • #760378
    Hai Gaurav,
    This is the common issue when we upload the site to the hosting server, the problem is with the date format.
    You can use the dates with the Culture as below:

    var date= myDate.ToString("d", new CultureInfo("en-US"))

    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #760384
    Hello Gaurav,

    Refer the below links for reference :

    https://abdussamad.com/archives/343-CentOS-Linux:-Setting-timezone-and-synchronizing-time-with-NTP-.html

    https://coreos.com/docs/cluster-management/setup/configuring-date-and-timezone/


    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "If you can dream it, you can do it."


  • Sign In to post your comments