-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do I change the default timezone? #66
Comments
I just came across the same issue. morgan.token('date', function() {
var p = new Date().toString().replace(/[A-Z]{3}\+/,'+').split(/ /);
return( p[2]+'/'+p[1]+'/'+p[3]+':'+p[4]+' '+p[5] );
}); |
Yes, defining a custom token is the way to change it (which is why you can define tokens). |
Okay, thanks~ I have resolved. |
Is the It seems to be yes, which I do think should be stated in the What do you think? Thanks. |
All the dates from the
The formats just present the date and time differently, but they are all in the UTC time zone as documented. |
I found the default timezone is "+0000" in output log on my servers, How do I change the timezone?
example, change to: 02/Jun/2015:08:06:14 +0300
who know it? please help me, thanks~
The text was updated successfully, but these errors were encountered: