{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/114","repository_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file","labels_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/114/comments","events_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/114/events","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/issues/114","id":277274965,"number":114,"title":"localTime attribute does not take effect","user":{"login":"BinitaBharati","id":1002161,"avatar_url":"https://avatars3.githubusercontent.com/u/1002161?v=4","gravatar_id":"","url":"https://api.github.com/users/BinitaBharati","html_url":"https://github.com/BinitaBharati","followers_url":"https://api.github.com/users/BinitaBharati/followers","following_url":"https://api.github.com/users/BinitaBharati/following{/other_user}","gists_url":"https://api.github.com/users/BinitaBharati/gists{/gist_id}","starred_url":"https://api.github.com/users/BinitaBharati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinitaBharati/subscriptions","organizations_url":"https://api.github.com/users/BinitaBharati/orgs","repos_url":"https://api.github.com/users/BinitaBharati/repos","events_url":"https://api.github.com/users/BinitaBharati/events{/privacy}","received_events_url":"https://api.github.com/users/BinitaBharati/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-28T06:39:51Z","updated_at":"2017-12-28T16:48:20Z","closed_at":"2017-12-28T16:48:20Z","author_association":"NONE","body":"Am using winston-daily-rotate-file (^1.7.2), even though localTime is set to true, timestamps are being logged into file in default UTC format.\r\nHere's is the logger config:\r\n\r\n``` javascript\r\n logger : new (winston.Logger)({\r\n    transports: [\r\n      new (winston.transports.DailyRotateFile)({\r\n\t      filename: 'arms-rest.log',\r\n\t      dirname: '/root/arms-rest2/arms-rest/logs/',\r\n\t      datePattern: 'yyyy-MM-dd.',\r\n\t      **localTime**: **true**,\r\n\t      prepend: true,\r\n\t      json: false,\r\n\t      maxDays: 2\r\n  \t\t})\r\n\r\n    ]\r\n  })\r\n```"},"comment":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/comments/354318514","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/issues/114#issuecomment-354318514","issue_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/114","id":354318514,"user":{"login":"mattberther","id":49548,"avatar_url":"https://avatars1.githubusercontent.com/u/49548?v=4","gravatar_id":"","url":"https://api.github.com/users/mattberther","html_url":"https://github.com/mattberther","followers_url":"https://api.github.com/users/mattberther/followers","following_url":"https://api.github.com/users/mattberther/following{/other_user}","gists_url":"https://api.github.com/users/mattberther/gists{/gist_id}","starred_url":"https://api.github.com/users/mattberther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattberther/subscriptions","organizations_url":"https://api.github.com/users/mattberther/orgs","repos_url":"https://api.github.com/users/mattberther/repos","events_url":"https://api.github.com/users/mattberther/events{/privacy}","received_events_url":"https://api.github.com/users/mattberther/received_events","type":"User","site_admin":false},"created_at":"2017-12-28T16:48:20Z","updated_at":"2017-12-28T16:48:20Z","author_association":"CONTRIBUTOR","body":"Some long-overdue refactoring of the transport has occurred. A PR is available at #107. Also, a pre-release version has been published to npm. Please `npm install winston-daily-rotate-file@2.0.0-beta`. \r\n\r\nNote that localTime is no longer an option on that version, rather it uses the momentjs strings to display the date. More information is available here: http://momentjs.com/docs/#/displaying/\r\n\r\nPlease re-open this issue if you continue to see weird behavior with the 2.0.0 beta.\r\n"}}
{"actor":{"display_login":"mattberther"}}