IMAP date filter issue - imap

I am using IMAP command to download the Yahoo mails.Mails got download successfully.
But there is a 4 hours difference between the date shown by yahoo and the downloaded date.
Date shown by Yahoo---->Mon,30 Dec 2013 20:36
Date in downloaded mail---->31 Dec 2013 4:36 AM
Because of this the Search command for BEFORE,SINCE also get failed.
It gives me the wrong result.

Related

Centos 6 Wrong timezone displaying on Web Page when pulling from server time

I'm currently having an issue with the wrong timezone displaying on a web page. I support a Linux environment for a small app development team. Currently we are testing a particular app. For test purposes we have a simple web page showing that the app is live and working. The page itself displays the project title and server time.
This issue is that the web page displays the incorrect timezone, however the time itself is correct.The text displayed is "The time on the server is April 5, 2018 7:18:04 AM CDT." For context I've included a screen shoot.
time zone issue
Nothing special going on here. As I said the time is technically correct, but it's displaying Central time when I need it to show Eastern, because the people using the app will be located in the Eastern timezone.
I support the environment itself and am not a developer. However, after speaking with them they ensure me that whatever method is being called is pulling from the server time. I've tested this successfully and am able to manually change the time on the server that it is hosted on, and the web page will reflect that.
Within the environment we are using CentOS 6. Based on my research the timezone information is handled by the file "localtime" within the "etc" directory. I've used several methods to alter this file.
I've tried the following command:
cp /usr/share/zoneinfo/Eastern /etc/localtime
I've also tried variations of the command. The server shows the correct time and timezone, but the timezone displayed on the web page never changes.
We have two servers to host apps. The interesting this is that apps that are hosted on the other server are being displayed correctly with the Eastern timezone. I've also tried simply taking the "localtime" file on the correct server, and copying it to the other server within the /etc/ directory. With each attempt doing a server restart.
I realize this is a simple issue, but after trying multiple methods with no success I thought I would seek assistance. Any help is appreciated.

TFS Server 2017 Error : The field <<name>> contains the value <<Value>> that is not in the list of supported values

I have TFS/VSTS extension in which I manipulate work items using rest calls . I use same for create , change status and close work items. And I could successfully do this process in several environments which is including TFS 2015 , TFS 2017 and VSTS.
However when I try this same process to create work Items (success) and update (close and status changes) I got below error on my console. I am testing on TFS server 2017 in this particular test case.
Bad Request(400) - The field 'State' contains the value 'New' that is not in the list of supported values
I couldn't find good solution from Microsoft documents . Please be kind enough to share your thoughts (Why this error is throwing) on this.
references :
https://developercommunity.visualstudio.com/content/problem/47463/team-member-cant-assign-workitem-getting-error-tha.html
https://social.msdn.microsoft.com/Forums/vstudio/en-US/a8c64056-f204-4b4d-8beb-363e81bc3be7/tf20015-the-field-assigned-to-contains-the-value-xyz-that-is-not-in-the-list-of-supported?forum=tfsgeneral
https://support.microsoft.com/en-us/help/2696878/fix-the-field-field-contains-a-value-that-is-not-in-the-list-of-suppor

OneNote API returns incorrect data

Since yesterday the OneNote API has displayed unusual behavior, simple calls are returning the incorrect notebook name or displayname.
For example, calls to https://www.onenote.com/api/beta/me/notes/notebooks returns an old notebook name that has since been renamed.
More complex filtering calls are completely confused when filtering by parentNotebook/name
Date: Mon, 20 Nov 2017 16:11:00 GMT
X-CorrelationId: 3af6f882-c15c-4871-928f-d04c9bfabca7
id: 1-e1ab8fa1-b2cd-433a-a346-5a1a0c775264
name: "Template2-WE"
links:oneNoteWebUrl:href:https://*************/Documents/Notebooks/TemplatePages-WE
This might be related to a known limitation of OneNote. If you rename a OneNote notebook in the OneNote Client, the rename is only effective in the clients - if you open OneDrive/SharePoint and look at your notebook, you will see (Notebooks are folders) the folder still has the old name. The API only sees the folder name, which in this case is the "old" incorrect name.
https://support.office.com/en-us/article/Rename-a-notebook-in-OneNote-Online-d75e88d2-ef77-43eb-a870-0abe89c1a036
If you follow these instructions and rename your notebook in the online portal, the API should see these changes.

Oauth::timestamp refused

i'm using linkedin gem for my RoR application, it's running fine on my local and stagign(it's live with dummy data only for testing) but on Production i'm having Oauth::timestamp refused error. My Staging and Production servers are using +0000 zone settings and i have no idea how to resolve this thing. Please let me know how to fix this.
Note that you can find out the current timestamp on the LinkedIn servers by sending a HEAD request for one of the resources. In python this could be:
import httplib
conn = httplib.HTTPConnection("api.linkedin.com")
conn.request("HEAD", "/v1/people/~")
resp = conn.getresponse()
print resp.getheaders()
You could then use this date to set the date for your application for subsequent calls. This is helpful when you don't have root access on the system (or know how to set the time/date)
Your date on the server is likely incorrect. You can read about the timestamp in the oauth specification here. It needs to be within 5 minutes of LinkedIn's server time.
You can find it out by typing:
date
And set it by using:
date -s "17 Jan 2012 13:00:00"
Your linked profile time zone and your rails app time zone configuration is not same. Check your linked in profile time zone what you have setted for your profile or may be location and set time by location on config/application.rb.
I just resolved this problem by set my time zone.

TFS wont send out alert mails anymore?

We have been using TFS with Visual Studio 2010 for quite sometime and untill yesterday the mail notifications(alerts) were being sent out properly .
Since today morning however it has stopped working and i am not able to figure out why ?
Any suggestions as to what could be wrong ?
You can get some good error information by setting the NotificationJobLogLevel to 2 and then querying the JobHistory table in the database. This should show you any errors that are occurring.

Resources