![]() |
#1 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,011
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
![]()
When I export books to disk, I use a template with contains {pubdate} to make up the file name. This worked until today.
Today, after installing version 2.70, I found that the resulting date (year) is 1 year off. So a pub date of 1991 in the database becomes according {pubdate} 1990, 2015 becomes 2014, etc. Update: strangely, it does not happen always. Last edited by DrChiper; 10-14-2016 at 08:45 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,268
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There weren't any changes to templates in 2.70. Most likely, this has always been the case. If you have a date like 1-1-1991:0:00UTC the database, when you use it in a template it is converted to the local timezone, which may be either 2-1-1991 or 31-12-1990 depending on your timezone.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,011
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Yes, that makes sense.
![]() I checked and all those ill behaving ones had the date 01-01-XXXX. Most of the times I do know the publishing year, but do not know the publishing month, so I enter Jan 1st as the date. When I make that Jan 2nd, every time the correct year is now used. I agree, this behavior is apparently not new but must have lingered a long time and I did not noticed it ![]() Thanks! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre - save to disk sort pubdate descending | dnm43 | Library Management | 1 | 02-13-2016 01:35 PM |
How to format pubdate so I only get year in the catalog output please? | millan | Library Management | 19 | 10-31-2014 08:07 AM |
Pubdate in catalogs | BetterRed | Calibre | 0 | 09-03-2013 01:54 AM |
Extract Pubdate | Martin Hollander | Calibre | 10 | 01-10-2013 08:30 AM |
Calibre is setting the pubdate to january every time | chadamir | Calibre | 2 | 05-21-2011 10:46 PM |